Home Search

DriveWorks Pro 21
Set Components Visibility State

Send Feedback

Set Components Visibility State - SOLIDWORKS PowerPack

This Generation Task will show or hide one or more components in an assembly.

Properties

Property NameDescription
(Name)The unique name for this Task.
Component NamesA 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 StateThe 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.

Example

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 NameExample RuleExample ResultMeaning
Component Names"BasePlate"&DWSpecificationId&"-1"BasePlate 9999-1This will use the BasePlate component in the Assembly as the component to set the visibility.
Visibility StateVisibleVisibleThis will set the Visibility of the Component to Visible.
Property NameExample RuleExample ResultMeaning
Component Names"BasePlate"&DWSpecificationId&"-1"& "|" &"BasePlate"&DWSpecificationId&"-4"BasePlate 9999-1|BasePlate 9999-4This will use the first and fourth instance of the BasePlate component in the Assembly as the component to set the visibility.
Visibility StateHiddenHiddenThis will set the Visibility of the Components to Hidden.

Generation Sequence

This Task can be added to SOLIDWORKS Assemblies in the following Generation Sequence(s):

  • Pre Drive (will be run before the Main Drive Sequence)
  • Post Drive (will be run after the Main Drive Sequence)