|
Code parameter |
This command allows you to create a real parameter. This code parameter can then be retrieved when creating a family. For example, if the screw, washer, and nut each have a code parameter, it will be possible to create a bolt family in which the screw, washer, and nut columns will be filled out.
Creation Stages / Use:
Select Construction > Parameters > Other Parameters > Code Parameter... command from the drop-down menu.
Enter a name.
Choose a type of extruded bar from the drop-down list. The list contains only the families that are used in the assembly document or in open family documents.
Choose a material from the drop-down list. Only codes that exist in the family are included.
Validate using .
Modifications / Additional information:
You can edit a parameter from the Parameters folder in the entities tree.
Example of use:
If we are working with a "bolt" assembly, comprised of a screw and a nut, we may want to vary the following elements:
• The screw type (screw family used).
• The screw code (M6 x 20).
• The nut type.
• The nut code.
There are two ways for these choices to be done:
• For each family code, meaning that we clarify that the code "B1" uses a "T1" type and "C1" code screw.
• Using a driver, meaning that the choice will be left to the user of the bolt at the time of inclusion.
For this kind of assembly family, we must first create somewhat special parameters: family parameters and code parameters.
The code parameter will include components whose code will be determined by the value of a parameter.
Before choosing the code value, you must choose the family in which it is defined. It is also possible to choose a family parameter. In this case, the code will be relative to the family corresponding to the value of the family parameter (which will be maintained by reference, in case the value changes).
For example, for a screw, we can create a "sc" parameter, corresponding to the screw code. Then, any change to the parameter will cause the included screw code to change as well. Once the variable components are included using family and code parameters, it is possible to make an assembly family.
For example, in the case of the bolt, we can image putting the screw's family parameter first (its value will be requested during the inclusion) and the rest in the catalog (the bolt code selection will determine the other variations).
We therefore have the following catalog:
When a bolt from this family is included by selecting "Hex head screw ISO 4014" as the screw family and "B8-50" as the code, we get a subassembly consisting of:
• A "Hex head screw ISO 4014 - M8 x 50".
• A "Hex bolt (style 1) ISO 4032 - M8".