You can use the Property Tab Builder to create List Group controls for conditional lists.
Before creating a list group control, create a Microsoft Excel spreadsheet that defines the properties that are available from a template that contains the list group.
Arrange the choices in columns.
For example, you could define two levels:
|
A |
B |
C |
D |
E |
F |
G |
1 |
Materials |
Finishes |
|
|
|
|
|
2 |
|
|
|
|
|
|
|
3 |
Steel |
Sand-blasted |
|
|
|
|
|
4 |
Steel |
Polished |
|
|
|
|
|
5 |
Steel |
Satinated |
|
|
|
|
|
6 |
Plastic |
Rough |
|
|
|
|
|
7 |
Plastic |
Semi-smooth |
|
|
|
|
|
8 |
Plastic |
Smooth |
|
|
|
|
|
To create a list group control:
- From the Windows Start menu, click .
- To define the type of template you are creating, in the right column under Control Attributes:
- Optionally, type a message for template users.
- Select the template type (Part, Assembly, Drawing, or Weldment).
- To add a list group, drag the List Group control from the left column to the Custom Properties column.
The control contains three lists. The first is the parent to the second list.
When a user selects an item from the parent, it determines the selections that are available in the successive lists.
The second control is the parent to the third list, and so on.
- Add or delete lists depending on the number of dependencies you need.
- To specify the spreadsheet to use with the list group controls:
- Click the list group header. Under Control Attributes, type a Caption for the list group.
- Under Custom Property Attributes, select whether the list group is Expanded or Collapsed when users view the template.
- For Path, specify the path to the spreadsheet or use the browse button to search for the file.
- For Range, specify the sheet and cells that define the lists in the list group.
For example, to use the values in cells A1 through A8 and B1 through B8 on Sheet1, type Sheet1(A1:B8).
- To specify the values available for the parent list group:
- Under Custom Properties, click the first List.
- Under Control Attributes, type a Caption.
- Under Custom Property Attributes, for Name select the name of the custom property that template users will specify.
- For Column, select the column of the spreadsheet whose values should be used.
-
For Configurations, select
Show on Custom Tab or
Show on Configurations Tab.
- Repeat step 6 for each additional list you want to configure.
- To save the template:
- Click Save .
- In the Save SolidWorks Properties template dialog box, for File name, type a name.
- For Save in, navigate to the location defined for Custom Property Files on the File Locations page of the System Options dialog box.
- Click Save.
- Close the Property Tab Builder dialog box.