The Set Component Properties Task will set the component properties for an instance in an assembly.
| Property Name | Description |
|---|---|
| (Name) | The unique name for this task. |
| Component Reference | The unique value for the component reference of the instance.
This appears in braces { } at the end of the component name string in the FeatureManager design tree. Leave blank to not set a component reference. |
| Envelope | TRUE to set the instance to an envelope.
Leave blank to not override the current value. Automatically sets Exclude from BOM to TRUE. |
| Exclude From BOM | TRUE to omit this instance from the bill of materials (BOM).
Leave blank to not override the current value. Applies only to table-based BOMs. This option is automatically enabled when Envelope is set to TRUE. |
| Referenced Configuration | The name of the configuration of the instance.
Leave blank to use the default referenced configuration. |
| Save Assembly As Part Option | The 'Save assembly as part' option for the instance (determines if a component is included when saving an assembly as a part).
|
| Solving State | The 'Solve as' option for the subassembly instance.
|
| Suppression State | The suppression state of the instance.
If the current value is Lightweight it will not be overridden, but driving the component to Lightweight is not supported. |
| Instance Name | The name of the top-level component in the assembly, including its instance number. |
| Fix | TRUE to fix the component, FALSE to float the component. Leave blank to not override the current value. |
| Visible | TRUE to show the instance, FALSE to hide the instance.
Leave blank to not override the current value. |
Instances are suffixed immediately after the component name (no space), with a dash and then the instance number.
For example:
For a component that appears in the SOLIDWORKS Feature Manager (after DriveWorks Model Generation) as - Part1 MyProject 0004<1>
Would be referenced as:
Part1 MyProject 0004-1
This task is easier to implement if instances are listed in numeric order in the SOLIDWORKS Feature Manager.
For example:
Instance <1> - is the first instance.
Instance <2> - is the second instance.
Instance <3> - is the third instance.
Unordered instances are renumbered, by SOLIDWORKS, when the assembly is driven.
If instances do not follow an order we recommend generating a new clone and noting the new instance numbers to be driven.
| Property Name | Example Rule | Meaning |
|---|---|---|
| Component Reference | Driven Instance | Will set the component reference to: Driven Instance. This will appear in braces { } at the end of the component name string in the FeatureManager design tree. |
| Envelope | True | Makes the component an Envelope. Exclude from BOM will also be enabled as envelopes are never includes in BOMs. |
| Exclude From BOM | True | Will exclude the component from the bill of materials (BOM). |
| Referenced Configuration | A | Will set the configuration of the component to A. |
| Save Assembly As Part Option | AlwaysInclude | Always includes the component when saving the assembly as a part. |
| Solving State | Flexible | Will set the subassembly to flexible. This allows movement of the subassemblys components. |
| Suppression State | Suppress | Will suppress the instance. |
| Instance Name | "Bracket " & DWSpecification & "-2" | Will set the component properties for the second (-2) instance in the assembly. |
| Fix | True | Position of the component will be fixed so it cannot move with respect to the assembly origin. |
| Visible | False | Will hide the selected component in the graphics area. |
This Task can be added to the following Generation Sequence(s):