The instance rule is used to determine the suppression state, delete, replace the instance or change the configuration of the instance. An instance can have its state changed and configuration switched by using the following syntax
" [State Operation] | [Configuration Name] "
State Operation is the operation to carry out on the state of the instance (Delete, Suppress, Replace and ReplaceFile.)
Configuration Name is the name of the configuration to switch to.
Order Of Instance
The instance order in the SOLIDWORKS feature manager does not necessarily follow the order DriveWorks recognizes.
DriveWorks requires the Instance number to be taken from the order it is listed in the SOLIDWORKS Feature Manager. For example:
|SOLIDWORKS Feature Manager display||DriveWorks Order Of Instance|
If you are unsure of the instance ordering, the DriveWorks capture assistant will indicate the order through Captured Parameter Highlighting.
In the image below Flange <5> in the SOLIDWORKS feature manager is Instance 1 to DriveWorks.
Captured Parameter Highlighting indicates the instance parameter in the DriveWorks capture assistant, on the model AND in the SOLIDWORKS feature manager.
When the instance is to be replaced with a file there are two options that can be used:
|TRUE||Unsuppresses the instance, you could also use "Unsuppress" (in quotes), or "U" (in quotes).|
|FALSE||Suppresses the instance, you could also use "Suppress" (in quotes), or "S" (in quotes).|
|"DELETE"||Deletes the instance from its parent assembly.|
|"Red"||The configuration of the model is switched to red.|
|"<Replace>MyComponentSetName"||Replaces the instance with a Component Set called MyComponentSetName. For more information, see the How To: Replace a Component With a Static or Driven Replacement Model help topic.|
|"U|Red"||Will unsuppress the instance and switch the configuration to Red.|
|"<Replace>MyComponentSetName|Red"||Replaces the instance with a Component Set called MyComponentSetName and switches the configuration of the replacement file to Red.|
|"<ReplaceFile>D:\Models\Part1.sldprt"||Will replace the instance with Part1.sldprt located in D:\Models\.|
|"<ReplaceFile>Models\Part1.sldprt"||Will replace the instance with Part1.sldprt located in the Models folder, which is relative to the specification path.|
|"<ReplaceFile><Project>\Models\Part1.sldprt"||Will replace the instance with Part1.sldprt located in the Models folder inside the <Project> location.
The following directives can be used to reference the various folder DriveWorks uses