DriveWorks Pro 18: Calculate Bounding Box Data  [send feedback...]

Calculate Bounding Box Data

When the task is run, it will assign the bounding box of the 3D file at the specified source file path (rounded to the specified number of decimal places and converted to a pipe-delimited string) to the Bounding Box data output.

It will also assign the midpoint of this bounding box (rounded to the specified number of decimal places and converted to a pipe-delimited string) to the Bounding Box Center data output.

Properties

Property NameDescription
Preview Control NameName of the 3D Preview control.
Source File PathThe path to the Drive3D file that will be imported. The path can be absolute or relative to the project file.
Decimal PlacesThe number of decimal places to round the result to between 0 and 15.

Using the Task in a Specification Macro

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs are only available within Specification Macros.

Outputs

  • Bounding Box

The bounding box of the imported file (in millimeters) as a pipe bar delimited string in the format 'X-Min|Y-Min|Z-Min|X-Max|Y-Max|Z-Max'.

  • Bounding Box Center

The center of the bounding box of the imported file (in millimeters) as a pipe bar delimited string in the format 'X|Y|Z'.

Status Outputs

This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:

Success

  • The Source file was successfully read.

Success with Warnings

  • N/A - should never be fulfilled.

Failed (one of the following occurred)

  • General failure - Check the specification report for more details.

Table of Contents