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.
|(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)
Instance Name Syntax
Instances are suffixed immediately after the component name (no space), with a dash and then the instance number.
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.
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||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.|
|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.