CadAddInsBlockM
Creates a new block reference (insert) — m and returns its handle.
YuHandle CadAddInsBlockM (
YuHandle hDwg,
YuHandle IdBlock,
double X,
double Y,
double Z,
double Scale,
double Angle,
std::int32_t NumCols,
std::int32_t NumRows,
double ColDist,
double RowDist
);
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). - NumCols (std::int32_t)
- Integer value.
- NumRows (std::int32_t)
- Integer value.
- ColDist (double)
- Numeric value (double precision).
- RowDist (double)
- Numeric value (double precision).
Return Value
The handle of the newly created block reference (insert), or 0 on failure.