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:
-
Add the control point to the top of the vertical section to obtain the length of the vertical section.
-
Open Assy_FR_IT_LS.cs in the PipeHgrAssemblies.csproj in [Product Folder]\3D\ Programming\ExampleCode\HangersAndSupports\Rules\CustomSupportDefinition\Pipe\PipeHgrAssemblies folder.
-
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");
-
Compile the PipeHgrAssemblies.dll and place it in the [Product Folder]\3DRefData\SharedContent\Bin\HangersAndSupports\Rules\Release folder.
-
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.