Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Sep 22, 2004
Messages
35
Location
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.

Part and Inventory Search

Sponsor

Back
Top