Click or drag to resize

DrawingCreatorExtension Methods

The DrawingCreatorExtension type exposes the following members.

Methods
  NameDescription
Public methodAddViews
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.
Public methodGetParent
Must implement. Return parent CTExtension of this Drawing Creator Extension.
Public methodOverrideCustomSheetName
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.
Public methodOverrideDrawingFilename
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.
Public methodPostAddViews
Post Process the sheet. E.g. add BOM for assembly drawings.
Public methodPreAddViews
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.
Top
See Also