# Edit Box3D

Edit Box3D command sets values on a Box3D and works only with tags corresponding to a cell with an EditBox3D function.

## Edit Box3D Inputs

Syntax: SB[tagName] [sizeX] [sizeY] [sizeZ] [posX] [posY] [posZ] [rotation] [tilt] [tiltDirection]

Note: Note that SB[tagName] is one string element, there is no space after SB.

Parameter | Description
--- | ---
tagName | The name of the Box3D.
sizeX | Size parameters of the Box3D.
sizeY
sizeZ
posX | Position parameters of the Box3D.
posY
posZ
rotation | Orientation parameters of the Box3D.
tilt
tiltDirection

## Edit Box3D Outputs

Error codes | Description
--- | ---
0 | Unrecognized command.
-1 | Bad tag ID. This error code means that the tag is not found.
-2 | Command cannot be executed.
-4 | Wrong number of arguments, or they are not from the expected type.

## Edit Box3D example

To Edit Box3D as the active job on the In-Sight vision system, issue the command with the corresponding values: SB[tagName] [sizeX] [sizeY] [sizeZ] [posX] [posY] [posZ] [rotation] [tilt] [tiltDirection].

In the example, the command is: SBBox3D 90 90 50 10 20 30 0 0 0.

The In-Sight sensor responds with 1, indicating that editing the Box3D was successful.