Drawing Automation Tools¶
Put the model's dimensions on a drawing and lay them out so nothing overlaps, add a bill of materials, set the sheet scale, or make a complete A3 drawing of a part or assembly in one call.
Prerequisite: An active Drawing document with views of a model; generate_drawing_package only needs a saved part or assembly.
Total tools in this category: 5
insert_model_dimensions¶
Bring the model's dimensions into the active drawing's views.
Prerequisite: SolidWorks running
Sample call:
arrange_dimensions¶
Move drawing dimensions so nothing overlaps, then check the real result.
Prerequisite: SolidWorks running
Sample call:
insert_bom_table¶
Insert a bill-of-materials table for an assembly view on the active drawing.
Prerequisite: SolidWorks running
Sample call:
set_sheet_scale¶
Set the active drawing sheet's scale; views using the sheet scale follow.
Prerequisite: SolidWorks running
Sample call:
generate_drawing_package¶
Create a complete A3 drawing of a part or assembly in one call.
Prerequisite: SolidWorks running
Sample call: