Complete the code to start a new drawing from an existing part or assembly.
drawingDoc = swApp.NewDocument([1], 0, 0, 0)
To create a drawing, you must specify swDocDRAWING as the document type.
Complete the code to insert a model view of the part or assembly into the drawing.
modelView = drawingDoc.Sheets(1).Views.AddModelView([1])
The AddModelView method requires the model document (part or assembly) as input.
Fix the error in the code to save the drawing file correctly.
drawingDoc.SaveAs([1])Use the drawing file path variable to save the drawing document.
Fill both blanks to set the drawing sheet size and orientation.
sheet = drawingDoc.Sheets(1) sheet.SetSize([1], [2])
Set the sheet size to A4 and orientation to Portrait for a common drawing layout.
Fill all three blanks to add a projected view to the drawing.
projView = modelView.[1]([2], [3])
Use InsertProjectedView method with front and top standard views to add a projected view.
