Dimension Angle Functions

Functions to create, modify, and query dimension angle objects, including origin, radius, sweep, and display attributes.

MTK_Object_DimensionAngle_GetAttributes()

Get the attributes of a dimension angle object.

Signature
int MTK_Object_DimensionAngle_GetAttributes(
    MTK_Object* obj,
    char* label, double* tickGap,
    double* tickOffset, double* tickExtentSize,
    double* arrowLength, double* arrowWidth
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • label: Label of the dimension angle.
  • tickGap: Tick gap.
  • tickOffset: Tick offset.
  • tickExtentSize: Tick extent size.
  • arrowLength: Length of the arrow head.
  • arrowWidth: Width of the arrow head.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionAngle_GetOrigin()

Get the origin location of a dimension angle object (the center of the angle).

Signature
int MTK_Object_DimensionAngle_GetOrigin(
    MTK_Object* obj,
    double* x, double* y, double* z    
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: Origin x value.
  • y: Origin y value.
  • z: Origin z value.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionAngle_GetRadius()

Get the radius location of a dimension angle object (the start of the angle).

Signature
int MTK_Object_DimensionAngle_GetRadius(
    MTK_Object* obj,
    double* x, double* y, double* z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: Radius x value.
  • y: Radius y value.
  • z: Radius z value.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionAngle_GetSweep()

Get the sweep location of a dimension angle object (the end of the angle).

Signature
int MTK_Object_DimensionAngle_GetSweep(
    MTK_Object* obj,
    double* x, double* y, double* z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: Sweep x value.
  • y: Sweep y value.
  • z: Sweep z value.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionAngle_SetAttributes()

Set the attributes of a dimension angle object.

Signature
int MTK_Object_DimensionAngle_SetAttributes(
    MTK_Object* obj,
    const char* label, const double& tickGap,
    const double& tickOffset, const double& tickExtentSize,
    const double& arrowLength, const double& arrowWidth
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • label: Label of the dimension angle.
  • tickGap: Tick gap.
  • tickOffset: Tick offset.
  • tickExtentSize: Tick extent size.
  • arrowLength: Length of the arrow head.
  • arrowWidth: Width of the arrow head.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionAngle_SetOrigin()

Set the origin location of a dimension angle object (the center of the angle).

Signature
int MTK_Object_DimensionAngle_SetOrigin(
    MTK_Object* obj,
    const double& x,
    const double& y,
    const double& z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: Origin x value.
  • y: Origin y value.
  • z: Origin z value.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionAngle_SetRadius()

Set the radius location of a dimension angle object (the start of the angle).

Signature
int MTK_Object_DimensionAngle_SetRadius(
    MTK_Object* obj,
    const double& x,
    const double& y,
    const double& z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: Radius x value.
  • y: Radius y value.
  • z: Radius z value.
Returns

0 on success; any other value indicates failure.

MTK_Object_DimensionAngle_SetSweep()

Set the sweep location of a dimension angle object (the end of the angle).

Signature
int MTK_Object_DimensionAngle_SetSweep(
    MTK_Object* obj,
    const double& x,
    const double& y,
    const double& z
    );
Parameters
  • obj: Pointer to an MTK_Object struct.
  • x: Sweep x value.
  • y: Sweep y value.
  • z: Sweep z value.
Returns

0 on success; any other value indicates failure.