yucad3d

CadAddInsBlock

Creates a new block reference (insert) and returns its handle.

YuHandle CadAddInsBlock ( YuHandle hDwg, YuHandle IdBlock, double X, double Y, double Z, double Scale, double Angle );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.
IdBlock (YuHandle)
Numeric identifier.
X (double)
World coordinate.
Y (double)
World coordinate.
Z (double)
World coordinate.
Scale (double)
Scale factor.
Angle (double)
Angle in radians, counter-clockwise from the +X axis (the host angle unit can be changed with CAD_GL_ANGUNITS).

Return Value

The handle of the newly created block reference (insert), or 0 on failure.

See Also