Opening Acad with VBA
Opening Acad with VBA
(OP)
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
Thanks in advance,
Pat





RE: Opening Acad with 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
RE: Opening Acad with VBA