CadCmdStrToPoint
Parse a coordinate string into a point.
std::int32_t CadCmdStrToPoint (
YuHandle hDwg,
const char* szStr,
double* pX,
double* pY,
double* pZ
);
Parameters
- hDwg (YuHandle)
- Handle to the drawing, as returned by
CadCreate. - szStr (const char*)
- NUL-terminated UTF-8 string.
- pX (double*)
- Receives the coordinate (caller-supplied
double*). - pY (double*)
- Receives the coordinate (caller-supplied
double*). - pZ (double*)
- Receives the coordinate (caller-supplied
double*).
Return Value
Nonzero (TRUE) on success, 0 (FALSE) on failure.
Remarks
Forms: "x,y[,z]" absolute; "@dx,dy" relative to the base point; "dist<ang" / "@dist<ang" polar (ang in degrees). Returns 1 on success, 0 on parse failure.