Add control point using CreateNote function in CSD - Intergraph Smart 3D - Reference Data

Intergraph Smart 3D Hangers and Supports Reference Data

Language
English
Product
Intergraph Smart 3D
Subproduct
Hangers and Supports
Search by Category
Reference Data
Smart 3D Version
11 (2016)

A control point indicates a specific location on a component. You can associate a note text with the control point and is displayed in the support drawings. You can convert a control point to a dimension point by setting the Dimensioned property to True. Use the following example to add the control ports in the CSD:

  1. Add the control point to the top of the vertical section to obtain the length of the vertical section.

  2. Open Assy_FR_IT_LS.cs in the PipeHgrAssemblies.csproj in [Product Folder]\3D\ Programming\ExampleCode\HangersAndSupports\Rules\CustomSupportDefinition\Pipe\PipeHgrAssemblies folder.

  3. In the ConfigureSupport method, add the following code to place the control point at the top of the vertical section, to get the dimensions.

    Note note4 = CreateNote("Dim4", componentDictionary[VERT_SECTION], "EndCap");

    Note4.SetPropertyValue("Fourth Dimension", "IJGeneralNote", "Text");

    CodelistItem codeList4 = note4.GetPropertyValue("IJGeneralNote", "Purpose").PropertyInfo.CodeListInfo.GetCodelistItem(4);

    Note4.SetPropertyValue(codeList4, "IJGeneralNote", "Purpose");

    Note4.SetPropertyValue(true, "IJGeneralNote", "Dimensioned");

  4. Compile the PipeHgrAssemblies.dll and place it in the [Product Folder]\3DRefData\SharedContent\Bin\HangersAndSupports\Rules\Release folder.

  5. Place the support in the Hangers and Supports task by selecting Assy_FR_IT_LS as the value for Type box. Dimensions are displayed between the control point and the dimension ports.