Text3D object allow users to put text on 3D model view.
Syntax Example:
...
<O T="Text3D">
...
...
</O>
A Text3D object is required to have 3 Point objects to define its location.
Example:
<ON="Text3DObject1"T="Project"Category="3D Geometric Objects"TransAlignRule="Right"><!-- created by ParamML Examples on 01.02.2023 --><OT="Surface"Thickness="20"Opacity="0.6"><OT="Point"X="0"Y="0"Z="0"/><OT="Point"X="30"Y="0"Z="0"/><OT="Point"X="30"Y="30"Z="0"/><OT="Point"X="0"Y="30"Z="0"/></O><OT="Text3D"FontSize="5"Label="Text on 3D Model"X="5"Y="15"Z="25"><OT="Point"Z="0"Y="5"X="0"/><OT="Point"Z="0"Y="-5"X="0"/><OT="Point"Z="5"Y="5"X="0"/></O></O>
To display a calculated value in the text, you can use the "||" symbol between statements. This will cause the expression inside the "||" to be evaluated and displayed as the final result.
The "Text3D" object has another special use. Using the expression "|Self.N|", the name of the project object is automatically written on the 3D object.
| | Label | Mandatory | Description | Example | | --- | --- | --- | --- | | 1 | FontSize | Yes | Font size of the text displayed in 3D view | FontSize="5" (integer or float)
FontSize="H/10" (expression) | 2 | Label | Yes | Text displayed in 3D view | Label="Sample Text" | | 3 | X | Yes | Location of center of text along X-axis | X="5" (integer or float)
X="L/2" (expression)
| 4 | Y | Yes | Location of center of text along Y-axis | Y="10" (integer or float)
Y="W/2" (expression)
| 5 | Z | Yes | Location of center of text along Z-axis. | Z="6" (integer or float)
Z="H/2" (expression)
| 6 | RX | Yes | Angle of rotation of text about X-axis | RX="1.57" (integer or float)
RX="PI/4" (expression)
| 7 | RY | Yes | Angle of rotation of text about Y-axis | RY="3.14" (integer or float)
RY="PI" (expression)
| 8 | Rz | Yes | Angle of rotation of text about Z-axis | RZ="1.57" (integer or float)