Complete the code to create a drawing view in SolidWorks.
modelDoc = swApp.ActiveDoc modelDoc.InsertNewDrawingView2([1], 0, 0, 1, 1, 0)
The front view is the primary view to communicate manufacturing intent clearly.
Complete the code to add a dimension to a drawing in SolidWorks.
drawingDoc = swApp.ActiveDoc drawingDoc.Extension.SelectByID2("Edge1", "EDGE", 0, 0, 0, false, 0, null, 0) drawingDoc.AddDimension2([1], 0, 0)
Adding a dimension of 0.1 meters clearly communicates size for manufacturing.
Fix the error in the code to set the drawing sheet size correctly.
drawingDoc = swApp.ActiveDoc
drawingDoc.GetCurrentSheet().SetSize([1])A3 size is commonly used for detailed manufacturing drawings.
Fill both blanks to add a note and set its font size in the drawing.
note = drawingDoc.InsertNote("Manufacture as per spec") note.SetFontSize([1]) note.SetBold([2])
Font size 14 with bold text makes notes clear for manufacturing.
Fill all three blanks to create a custom property for material in the drawing.
customPropMgr = drawingDoc.Extension.CustomPropertyManager[""] customPropMgr.Add3("Material", [1], [2], [3])
Adding a text custom property 'Material' with value 'Aluminum 6061' and replace option sets manufacturing material clearly.
