The Set Instance State Generation Task will set the state of an instance. An instance can be hidden or shown, suppressed or unsuppressed, deleted or switched to another configuration.
Property Name | Description |
---|---|
(Name) | The unique name for this task. |
Instance Name | The name of the component in the assembly, including its instance number. |
State | The state to set the instance to.
(Hide or Show, Suppress or Unsuppress, Delete, Configuration Name) |
Property Name | Example Rule | Example Result | Meaning |
---|---|---|---|
Instance Name | "Bracket " & DWSpecification & "-2" | Bracket Canopy Assembly 0006 -2 | Will set the state of the second (-2) instance in the assembly.
Instance Order Unlike other areas of DriveWorks where the instance number is referenced, this task is easier to implement if all instances are in order. 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 assemblies are driven. If instances do not follow an order we recommend generating a new clone and noting the new instance numbers to be driven. |
State | If(DWVariableBracket2=TRUE, "Unsuppress", "Suppress") | Suppress | Will suppress the instance. |
State | ColorReturn | Red | Will swap the configuration to Red.
The configuration must exist in the component. |
State | "Delete" | Delete | Will delete the instance.
When deleting instances the task must be placed in the Post Drive Tasks
sequence. |