Positions a label in clear space for a 2D curve based on a related reference plane. For example, if a non-target plate is coplanar with a reference plane, the label for that plate can be positioned with respect to the reference plane instead of the 2D curve for the plate.
-
This module is used with the Group by Axis (SMDwgGroupByAxisGA) geometric analyzer.
-
The 2D geometry of the 3D object must have one or more curves.
-
If no reference plane is identified for an object, then no label is positioned by this module.
Usage in Label Template XML
<posSettings>
<posModulesSets>
<posModulesSet>
<connectPoint>4</connectPoint>
<positioningPoint>4</positioningPoint>
<posModules>
<posModule value="SMDwgPositionByCurve2DAtAxis">
<axisInfo>Grid Axis</axisInfo>
<top>
<offsetX>0.0</offsetX>
<offsetY>0.01</offsetY>
<angle>4</angle>
<anchor>0</anchor>
<connectPoint>3</connectPoint>
</top>
<bottom>
<offsetX>0.0</offsetX>
<offsetY>0.01</offsetY>
<angle>4</angle>
<anchor>0</anchor>
<connectPoint>3</connectPoint>
</bottom>
<left>
<offsetX>0.01</offsetX>
<offsetY>0.0</offsetY>
<angle>3</angle>
<anchor>0</anchor>
<connectPoint>5</connectPoint>
</left>
<right>
<offsetX>0.01</offsetX>
<offsetY>0.0</offsetY>
<angle>3</angle>
<anchor>0</anchor>
<connectPoint>3</connectPoint>
</right>
</posModule>
</posModules>
</posModulesSet>
</posModulesSets>
</posSettings>
Customization
axisinfo
Name of the label template .xml file that creates the reference planes. The delivered files are Grid Axis.xml and Grid Axis_No Spacing.xml.
top, bottom, left, right
Sides of the curve that can be used to locate the label with respect to an axis.
1 - Top |
In the example below, thickness markings are placed on the left axis for the lines in red representing profiles.
offsetX, offsetY
Offset distance of the label from the 2D axis. This property is used in combination with the defined side of the curve (top, bottom, left, or right) that can be used to locate the label.
1 - Offset from X axis |
angle
Orientation of the label for the defined side (top, bottom, left, or right).
|
XML value |
|
Horizontal |
3 |
|
Vertical |
4 |
anchor
The point on the label used for positioning.
|
XML value |
|
---|---|---|
Treat as Label |
0 |
|
Uses a key point on the bounding box of the label, as specified by the connect point property in posModulesSet. |
||
Treat as Symbol |
1 |
|
Uses the origin of the symbol. |
||
Use Connect Point Similar to 0 (Treat as Label) but uses a key point specified by the connect point property defined directly in this module. |
2 |
connectPoint
Specifies the position of the label relative to the key point on the text bounding box and used with the anchor property. The default value is 4 (Middle Middle).
Key Points |
|
---|---|
0 |
Top Left |
1 |
Top Middle |
2 |
Top Right |
3 |
Middle Left |
4 |
Middle Middle |
5 |
Middle Right |
6 |
Bottom Left |
7 |
Bottom Middle |
8 |
Bottom Right |
-
Use the connect point in this module in the same way that you use the positioning point in the posModuleSet positioning module.
-
You can use the value of the connect point defined in the posModulesSet positioning module by using 0 (Treat as Label) for anchor or define the value directly in this module by using 2 (Use Connect Point) for anchor.
-
positioningPoint in the posModulesSet positioning module is not used by this module even when you have defined that parameter.
Example
The thickness symbol is placed on the reference plane instead of the profile geometry.
Although a content module creates the annotation output, this example shows how this module affects the output.