Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
GSGregory Sharp02/05/2013
Hi all,
Does anyone know of a macro or have the code to create a new drawing document without inserting any sheet format. In other words, a macro that uses the default drawing template to create a new document but then removes the sheet format, or code to creating a new drawing template that is blank, which has no sheet format? I'm running SW 2010.
here is what I'm currently using to create the drawing:
sDrTemplate = swApp.GetUserPreferenceStringValue(swUserPreferenceStringValue_e.swDefaultTemplateDrawing)
lDrSize = swDwgPaperSizes_e.swDwgPaperA0size
Set swDraw = swApp.NewDocument(sDrTemplate, lDrSize, 0, 0)
thanks!