Adding Instantiating Attributes

This task explains how to add attributes to the Hanger Feature Dictionary, and how to assign discrete values to these attributes.  
You need to add Instantiating Attributes to the Hanger Feature dictionary before you can assign values to attributes during hanger placement. See Placing a Hanger in Free Space.
1. Start the Feature Dictionary Editor. See Starting the Feature Dictionary Editor.
2. From the Feature Dictionary Editor, click File - Open and select the appropriate .CATfct file.

For Hanger Design, select CATHangerSample.CATfct in the directory ...\intel_a\resources\graphic.

The file opens and displays the specifications tree and Attributes tab.

In the specifications tree, double-click the class to which you want to add a property.

3. Add the attributes (using the Add Attribute dialog box). See Adding Properties to an Object Class.
4. Add each attribute name to a text file. When adding Instantiating Attributes, name this file InstantiatingAttributes.txt.

Store the file in the directory ...\intel_a\startup\EquipmentAndSystems\xxxxxx\DesignRules. (For Hanger Design, xxxxxx  is Hanger.)

5. Open the Catalog Editor to associate the actual attributes to the InstantiatingAttributes.txt file. See Creating a Catalog.

From the Catalog Editor, click File - Open and select HangerDesignRules.catalog in the ...\intel_a\startup\EquipmentAndSystems\Hanger\DesignRules directory.

The file opens and displays the specifications tree and Keywords tab.

In the specifications tree, double-click the DesignRules chapter.

6. Click the Add Family button and the Component Family Definition dialog box displays.

In the Name field, enter this name: InstantiatingAttributes

Select Hanger from the drop-down list and click OK.

The name InstantiatingAttributes that you entered displays in the specifications tree.

7. Double-click InstantiatingAttributes in the specifications tree.

Click the Add Component button and the Description Definition dialog box displays.

Click the Select Document button and select the text file InstantiatingAttributes.txt.

The Description Definition dialog box redisplays with the filename you selected (InstantiatingAttributes.txt) displaying in the Name field. Click OK.

8. Define discrete values for the attributes in a text file. Create a separate file for each attribute.

Make sure you give the text file the same name as the attribute. For example, if the attribute is Deck, name the text file Deck.txt. See Defining Discrete Values for a Property.

Store the text files in the directory ...\intel_a\startup\EquipmentAndSystems\xxxxxx\DesignRules. (For Hanger Design, xxxxxx  is Hanger.)

9. Use the Catalog Editor to associate the discrete values text files to the attributes.

In the specifications tree, double-click the DiscreteValues chapter.

10. Click the Add Family button and the Component Family Definition dialog box displays.

In the Name field, enter the name of an Instantiating Attribute as you entered it in the Add Attribute dialog box.

Select Hanger from the drop-down list and click OK.

You can see the attribute that you entered display in the specifications tree.

Repeat this process for each attribute.

11. Double-click the attributes in the specifications tree (the ones you added in the Component Family Definition dialog box).

Click the Add Component button and the Description Definition dialog box displays.

Click the Select Document button and select a discrete values text file. (The text files given the same name as the Instantiating Attribute.)

The Description Definition dialog box redisplays with the filename you selected displaying in the Name field. Click OK.

Click the Select Document button to repeat this process for each of the discrete values text files that you defined.

  12. Click File - Save to save HangerDesignRules.catalog, then click File - Close.