# EditBox3D

The EditBox3D function inserts an interactive graphical Box3D control into the selected spreadsheet cell. It returns an EditBox3D control element, allowing you to modify the Box3D structure in accordance with the enabled parameters.

Inputs

The EditBox3D function has the following syntax:

EditBox3D(PointCloud,Fixture3D,ExternalFixture,Move,Size,Rotate,Name,Show)

Parameter | Description
PointCloud | Reference to a cell containing a point cloud. The default value is $A$0.
Fixture3D | Specifies the point cloud coordinate system in which the 3D fixture is defined. It is offset from the PointCloud origin in the following format with the following arguments: {X, Y, Z, Rotation, Tilt, TiltDirection}
X | Offset on the X-axis from the PointCloud origin.
Y | Offset on the Y-axis from the PointCloud origin.
Z | Offset on the Z-axis from the PointCloud origin.
Rotation | Specifies the in-plane rotation in degrees around the PointCloud Z-axis. The value range is -180 to 180. The tool normalizes external references with values outside the allowed range to the allowed range.
Tilt | Specifies the tilt angle in degrees from the PointCloud Z-axis after rotation. The value range is 0-180. External references with values outside the allowed range result in an error.
Tilt Direction | Specifies the direction of tilt in degrees from the rotated PointCloud X-axis of the tool, around the PointCloud Z-axis of the tool. The value range is -180 to 180. The tool normalizes external references with values outside the allowed range to the allowed range.
Note: The Fixture3D parameter is only available if you set External Fixture to 0.
External Fixture | Specifies a reference to a Fixture3D structure defined in another cell. The function uses the referenced cell as the fixture of the function. Set to 0 (OFF) to use the internal fixture of the function instead.
Move | Disables or enables the ability to adjust the input region position. This setting is enabled by default.
Size | Disables or enables the ability to resize the input region (that is, change its height and width). This setting is enabled by default.
Rotate | Disables or enables the ability to adjust the input region orientation. This setting is enabled by default.
Name | Specifies the text string label of the control.
Show | Selects the type of graphics to overlay on the image.
0 = hide all (default) | All graphics will be hidden, except when the cell containing the function is highlighted in the spreadsheet.
2 = input graphics only | The input data will be displayed at all times.

Outputs

Returns | An EditBox3D structure that allows you to modify the related Box3D structure.
Results | When initially inserted into a cell, the following functions are automatically inserted into the spreadsheet to create a result table.
| SizeX | SizeY | SizeZ | X | Y | Z | Rotation | Tilt | TiltDirection
❒<EditBox3D_Name> | GetSizeX(Box3D) | GetSizeY(Box3D) | GetSizeZ(Box3D) | GetX(Box3D) | GetY(Box3D) | GetZ(Box3D) | GetRotation(Box3D) | GetTilt(Box3D) | GetTiltDirection(Box3D)

Vision Data Access functions

The function has the following Vision Data Access functions.

Function | Description
GetRotation(Box3D) | Returns the rotation of the Z-axis in degrees, also known as the in-plane rotation.
GetSizeX(EditBox3D) | Returns the size of the 3D box along the X-axis.
GetSizeY(EditBox3D) | Returns the size of the 3D box along the Y-axis.
GetSizeZ(EditBox3D) | Returns the size of the 3D box along the Z-axis.
GetTilt(Box3D) | Returns the tilt angle of the Box3D structure in degrees on the Z-axis.
GetTiltDirection(Box3D) | Returns the tilt direction angle of the specified Box3D structure in degrees. The angle is measured in the X-Y plane of the original reference coordinate system, and specifies the direction for the projection of the tilted Z-axis onto that plane.
GetX(EditBox3D) | Returns the X-axis coordinate of the 3D box's center point.
GetY(EditBox3D) | Returns the Y-axis coordinate of the 3D box's center point.
GetZ(EditBox3D) | Returns the Z-axis coordinate of the 3D box's center point.