Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Opening Acad with VBA

Status
Not open for further replies.

mcguirepm

Mechanical
Oct 9, 2002
33
Does anyone know how to open a specific drawing with VBA? I have a VBA program in Excel that can open AutoCAD 2005, but I can't find the proper command and syntax to open a specific drawing. Everything works fine if I manually open the drawing and then run the macro, but I need it to be fully automatic.

Thanks in advance,
Pat
 
Replies continue below

Recommended for you

From ACAD VBA

ThisDrawing.Application.Documents.Open "FileName", "ReadOnly boolean"

From VB, set a reference to the the ACADapp.document equal to "ThisDrawing" example above

"Everybody is ignorant, only on different subjects." — Will Rogers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor