This Generation Task will show or hide one or more components in an assembly.
Property Name | Description |
---|---|
(Name) | The unique name for this Task. |
Component Names | A Pipebar (|) delimited string of components (with instance numbers) to show or hide.
Instance numbers will change when models are replaced in SOLIDWORKS. This Task requires the instance number to be as it is listed in the SOLIDWORKS Feature Manager. This will be different when running as a Pre Drive Task and Post Drive Task. For example: Running as a Pre Drive Task will require the master instance name and number. Running as a Post Drive Task will require the finalized instance name and number. We recommend running this through Model Insight to confirm instance names and numbers. |
Visibility State | The Visibility State Value to set the component(s) to. |
When naming Components to be used it is important that the name(s) you enter for the properties are an exact match including case sensitivity and spaces.
The Components must exist for this Task to work. This means new files need to be released and generated before the Generation Task can be run.
When this task is added the properties are both static and dynamic by default. See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.
Property Name | Example Rule | Example Result | Meaning |
---|---|---|---|
Component Names | "BasePlate"&DWSpecificationId&"-1" | BasePlate 9999-1 | This will use the BasePlate component in the Assembly as the component to set the visibility. |
Visibility State | Visible | Visible | This will set the Visibility of the Component to Visible. |
Property Name | Example Rule | Example Result | Meaning |
Component Names | "BasePlate"&DWSpecificationId&"-1"& "|" &"BasePlate"&DWSpecificationId&"-4" | BasePlate 9999-1|BasePlate 9999-4 | This will use the first and fourth instance of the BasePlate component in the Assembly as the component to set the visibility. |
Visibility State | Hidden | Hidden | This will set the Visibility of the Components to Hidden. |
This Task can be added to SOLIDWORKS Assemblies in the following Generation Sequence(s):