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 define two
levels in a spreadsheet:
|
A |
B |
1 |
Materials |
Finishes |
2 |
|
|
3 |
Steel |
Sand-blasted |
4 |
Steel |
Polished |
5 |
Steel |
Satinated |
6 |
Plastic |
Rough |
7 |
Plastic |
Semismooth |
8 |
Plastic |
Smooth |
To create a list group control:
-
From the Windows Start
menu, go to
.
-
To define the template type, in the right column under
Control Attributes:
-
Optionally, enter a message for template users.
-
Select the 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 list is the parent to the second
list. And the second list is the parent to the third list.
When a user selects an item from the parent, it determines the selections
that are available in the successive lists.
- Optional:
Add or delete lists as required.
- To specify the spreadsheet to use with the list group controls:
-
Click the list group header. Under Control
Attributes, enter a Caption for
the list group.
-
Under Custom Property
Attributes, select to show the list group as
Expanded or Collapsed
when users view the template.
-
For Path, specify the path to
the spreadsheet or click
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, enter Sheet1(A1:B8).
- To specify the values available for the parent list group:
- Under Custom Properties, click the first List.
-
Under Control Attributes, enter
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 that contains the values to use.
-
For Configurations, select
Show on Custom Tab
or Show
on Configuration Specific Tab
.
-
Repeat step 6 to configure each list.
- To save the template:
- Click Save
.
-
In the Save SolidWorks Properties
template dialog box, for File
name, enter a name.
-
Select 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.