The ASSIGN Statement
- Last UpdatedJan 07, 2026
- 1 minute read
ASSIGN,<variable_1>,<variable_2>
[/XCOORD]
[/YCOORD]
[/ZCOORD];
<variable_1> is assigned the same value as <variable_2> and will get the same type as the first one. The maximum length of <variable_1> and <variable_2> is 32 characters. <variable_2> can be an expression or have any of the following types:
INTEGER
DECIMAL
STRING
POINT_2D
LINE_2D
ARC_2D
CONTOUR_2D
CIRCLE_2D
VECTOR_2D
SPLINE_2D
TEXTFILE_2D
TEXT_2D
SYMBOL_2D
NOTE_2D
HATCH_2D
EXTRACT
RANGE
TABLE
POINT_3D
VECTOR_3D
CONNECTIONPOINT_3D
CONE_3D
CYLINDER_3D
GENERALCYLINDER_3D
PARALLELEPIPED_3D
POLYGON_3D
SPHERESEG_3D
TOROID_3D
ROTATIONAL_3D
XCOORD
If <variable2> is of type POINT_2D or POINT_3D, then <variable1> can be assigned the x coordinate of <variable2>. This variable will get type DECIMAL.
YCOORD
If <variable2> is of type POINT_2D or POINT_3D, then <variable1> can be assigned the y coordinate of <variable2>. This variable will get type DECIMAL.
ZCOORD
If <variable2> is of type POINT_3D, then <variable1> can be assigned the z coordinate of <variable2>. This variable will get type DECIMAL.