Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a file from within Auto CAD 14

Status
Not open for further replies.

BudMan38

Electrical
Feb 13, 2003
5
I'm new at Autocad and VBA and is wondering how I would make a VBA applc

The first page of the drawing t:\autocad\dwgnumber
The second page of the drawing t:\autocad\sheet1\dwgnumber
and so on.
The problem is there are so many drawings in each dir that it take so long to open.
What I would like to do is create a routine that when the drawing is open a VBA icon shows up on a tool bar. When the Icon is clicked an application is open that has 2 text boxes one that displays the drawing number and one that shows the page number.
when the page number changes it automaticly opens the proper dir and dwg.
 
Replies continue below

Recommended for you

Are you asking for a text box that displays a list of folders and dwg files including sub directories that you can then pick from?
 
borgunit

No. I’m afraid I didn’t explain it very well the first time maybe this will help

The dir structure is like this.
F:\eng\ 435671 (The first sheet of the drawing).

The second sheet of the drawing is placed in a sub dir of eng like F:\eng\Sheet2\435671(The second sheet of the drawing). The drawing number is the same the sheet is placed into the corresponding dir name sheet2, sheet3 and so on.
Only the first sheet is placed in the main dir of eng.

There are about 3 to 4 hundred files in this dir and to open them through the open file in the dropdown menu is painfully slow.

What I would like to happen is.

The first page of the drawing would be opened in AutoCAD and somewhere maybe on a toolbar an icon is loaded that would activate the routine when clicked. Once the routine is open a text box would display the drawing number that is open.
The second text box would show the sheet number that is open.


Drawing number
[435671] (textbox)

Sheet Number
[1 ]

If I change the sheet number it would automatically open sheet
2.(textbox)

Thank you for your patience
Budman38
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor