Project information in CLData

The information about the SprutCAM project placed inside CLData available through the Project operator.

You can display it on the screen if on the CLData tab select the first item with the name of the project. Properties will be shown in the parameters tree on the right.

images/download/attachments/84219573/image10.jpg

The list of possible properties described in tables below. Information about the properties structure, presented as an XML file, is available in the SprutCAM installation folder in a subfolder Supplement\Operations\CLData.xml.

Parts: Array

Project.Ptr["Parts"] - The list of structures that contain information about the part. The count of items depend on count of parts in the project.

Part: ComplexType

Project.Ptr["Parts"].Item[index] - the structure that contain information about one part.

Workpiece: Array

Project.Ptr["Parts"].Item[index].Ptr["Workpiece"] - the list of structures that contain information about workpiece items that correspond to the part with defined index.

Item: TCLDModelItem


Project.Ptr["Parts"].Item[index].Ptr["Workpiece"].Item[index2] - the structure that contain information about the one workpiece item. The composition of the properties depends on the type of element. All of them are inheritors from complex type TCLDModelItem, so all elements have one common property - the primitive type. See Possible workpiece items table below.

PrimitiveType: Integer

Project.Ptr["Parts"].Item[index].Ptr["Workpiece"].Item[index2].Int["PrimitiveType"] - the type of the geometrical primitive:

0 - Unkbown,

1 - Empty workpiece

2 - Faces (reference to the CAD model)

3 - Casting

4 - Box

5 - Turn envelope

6 - Cylinder

7 - Tube

8 - Prism

9 - Polygonal prism


Possible workpiece items

EmptyWorkpiece: TCLDModelItem

Element of the workpiece, which says that the processing begins with a void. For example, if we grow a part from scratch by methods of additive processing

Box: TCLDModelItem

The workpiece item representing the parallelepiped given by two points.

Min: ComplexType

Left bottom corner point of the box.

X: Double

X coordinate of the point

Y: Double

Y coordinate of the point

Z: Double

Z coordinate of the point

Max: ComplexType

Right top corner point of the box

X: Double

X coordinate of the point

Y: Double

Y coordinate of the point

Z: Double

Z coordinate of the point

RevBody: TCLDModelItem



The workpiece item representing the turn envelope defined by the axis around which the rotation is performed and a set of geometric primitives that rotate.

Origin: ComplexType

Start point of the rotation axis

X: Double

X coordinate of the point

Y: Double

Y coordinate of the point

Z: Double

Z coordinate of the point

Axis: ComplexType

Vector that represents the axis of rotation

X: Double

X coordinate of the vector

Y: Double

Y coordinate of the vector

Z: Double

Z coordinate of the vector

Cylinder: RevBody

The workpiece item representing cylinder along defined axis. It is a successor of the RevBody type, therefore it contains all its properties, which are described above.

HMin: Double

Start level of the cylinder. This is the distance along the axis, starting from the point of origin.

HMax: Double

Finish level of the cylinder. This is the distance along the axis, starting from the point of origin.

ROut: Double

Outer radius of the cylinder.

Tube: Cylinder

The workpiece item representing tube along defined axis. It is a successor of the Cylinder type, therefore it contains all its properties, which are described above.

RInn: Double

Inner radius (hole radius) of the tube.

Prism: TCLDModelItem

The workpiece item representing the prism (extrusion item) defined by the axis along which the extrusion is performed and profile to extrude.

Origin: ComplexType

Start point of the extrusion axis

X: Double

X coordinate of the point

Y: Double

Y coordinate of the point

Z: Double

Z coordinate of the point

Axis: ComplexType

Vector that defines the direction of extrusion

X: Double

X coordinate of the vector

Y: Double

Y coordinate of the vector

Z: Double

Y coordinate of the vector

HMin: Double

Start level of the prism. This is the distance along the axis, starting from the point of origin.

HMax: Double

Finish level of the prism. This is the distance along the axis, starting from the point of origin.

PolygonalPrism: Prism

The workpiece item representing regular polygonal prism along defined axis. It is a successor of the Prism type, therefore it contains all its properties, which are described above.

RInn: Double

The radius of the inscribed circle of the polygon

Angle: Double

The angle of rotation of the polygon around the axis

CornerCount: Integer

The corners count of the polygon

Faces: TCLDModelItem

The workpiece item representing the general form body specified by the CAD model reference.

Box: ComplexType

The box around CAD-model. Lets you know the overall dimensions.

Min: ComplexType

Left bottom corner point of the box.

X: Double

X coordinate of the point

Y: Double

Y coordinate of the point

Z: Double

Z coordinate of the point

Max: ComplexType

Right top corner point of the box

X: Double

X coordinate of the point

Y: Double

Y coordinate of the point

Z: Double

Z coordinate of the point

Casting: TCLDModelItem


The workpiece item representing the body, which is obtained by adding an additional stock to the body of the general form specified by the CAD model reference.


Box: ComplexType

The box around CAD-model with stock. Lets you know the overall dimensions.



Min: ComplexType

Left bottom corner point of the box.




X: Double

X coordinate of the point




Y: Double

Y coordinate of the point




Z: Double

Z coordinate of the point



Max: ComplexType

Right top corner point of the box




X: Double

X coordinate of the point




Y: Double

Y coordinate of the point




Z: Double

Z coordinate of the point


Stock: Double

The value of stock.