In the CAD design, the need to draw the spline, the user can set the spline line weight and color attributes.
The main use of Function:
_DMxDrawX::SendStringToExecuteFun
In front of the command execution function, you can pass parameters. Details are as follows:
parameter | Explanation |
---|---|
IDispatch* pParam |
Command parameters, IMxDrawResbuf objects |
pszExecute |
Command name |
js implemented Definitions:
DrawSpline function () { var param = mxOcx.NewResbuf (); mxOcx.SendStringToExecuteFun ( "_ DrawSpline", param); var retparam mxOcx.GetEntitysLastCmd = (); IF (retparam == null) return; IF (== retparam.Count 0) return; var = retparam.AtObject spline (0); IF (spline == null) { return; } // draw the entity to FIG. When generally used for dynamic drag, drag and drop at the end, to draw the map; id entity returns the newly drawn spline.Draw (); }