Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Turning off Regen in AutoCAD VBA

Status
Not open for further replies.

LumpoDelMagnifico

Electrical
Sep 22, 2004
35
0
0
US
I am using a VBA macro to open and print a series of drawings. Currently, VBA will Regen any drawings made with an older version of AutoCAD before it does the print. I would like to prevent this if possible. Does anyone know how I can turn off the REGEN when I open a drawing? Here is the code I am using to open the drawings. It is called by a while loop that cycles through an array of drawing names already picked by my code.

Sub OpenFiles(Dwgname As String)
Dim CurrentDwg As AcadDocument
Set CurrentDwg = Application.Documents.Open (Dwgname, [ReadOnly])
End Sub
 
Status
Not open for further replies.
Back
Top