![]() | DrawingCreatorExtension Methods |
The DrawingCreatorExtension type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddViews |
Called after PreAddViews. If you return true, you are responsible of creating all the views using
SW API. Dimensions are imported for all views after this if defined in Drawing Creation Rule settings.
|
![]() | GetParent |
Must implement. Return parent CTExtension of this Drawing Creator Extension.
|
![]() | OverrideCustomSheetName |
If the automation rule uses Custom Sheet name, you can override it here.
Called when the drawing rule is selected for a component, after OverrideDrawingFilename.
|
![]() | OverrideDrawingFilename |
Called when the drawing rule is selected for a component at Batch Operations.
You can override drawing name (full path). If overriden to empty, then drawing creation is ignored.
If you need licensed Document Manager to inspect the source model, you can obtain it with static call CTInterface.GetSWDocManager().
SldWorks instance can be obtained and cached at MyExtension.Hook.
|
![]() | PostAddViews |
Post Process the sheet. E.g. add BOM for assembly drawings.
|
![]() | PreAddViews |
Called when rules are executing. When this is called, the drawing is created but not saved,
source model is open and has the configuration to be used as reference activated.
Allows doing custom preparations for the sheet before views are added.
|