 | DrawingCreatorExtensionOverrideDrawingFilename Method |
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.
Namespace: CTExtensions.InterfacesAssembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntaxpublic virtual bool OverrideDrawingFilename(
CTDrawingAutomation oAutomation,
string bsModelFilename,
string bsModelConfiguration,
string bsDrwFilename,
out string bsDrwFilenameOverride
)
Public Overridable Function OverrideDrawingFilename (
oAutomation As CTDrawingAutomation,
bsModelFilename As String,
bsModelConfiguration As String,
bsDrwFilename As String,
<OutAttribute> ByRef bsDrwFilenameOverride As String
) As Boolean
Parameters
- oAutomation CTDrawingAutomation
- Automation rule to which this extension is attached to.
- bsModelFilename String
- Full path of the model for which this rule is about to suggest a drawing name.
- bsModelConfiguration String
- Configuration of the model for which the drawing should be created.
- bsDrwFilename String
- Suggested full path for the drawing.
- bsDrwFilenameOverride String
- Return overridden full path for the drawing here; the file must be creatable. Or return empty string to cancel drawing creation. It both cases the function must return true.
Return Value
BooleanTrue if you want to override the
bsDrwFilename with
bsDrwFilenameOverride or to cancel drawing creation with empty
bsDrwFilenameOverride, otherwise false.
Revision HistoryDate | Version | Description |
---|
- | 2023 SP0 | First Release |
See Also