Add an arc to the document.
Syntax
Example
C# | Copy Code |
---|
vdrawobj.scriptCommand.circle(); // begins a user action to draw an arc |
C# | Copy Code |
---|
// draw an arc using active color , linetype,layer etc properties, with center 2,2 radius 3 , start angle 45 degrees and end angle 135 degrees //after this command is finished the object is not drawn on screen. //You can call the vdrawObj.redraw after adding an amount of commands vdrawobj.scriptCommand.arc([[2,2,0],3.0, vdgeo.DegreesToRadians(45), vdgeo.DegreesToRadians(135)]); setTimeout(vdrawObj.redraw);//post a redraw command |
C# | Copy Code |
---|
// draw an arc using active color , linetype,layer etc properties, with center 2,2 radius 3 , start angle 45 degrees and end angle 135 degrees //after this command is finished the object is not drawn on screen. //In order to display it call vdrawObj.DrawEntity and <see cref="M:vdWebLibrary.vdrawObj.Refresh"/> inside the user define callback .See example. function actionentityadded(vdraw, entity) { vdraw.DrawEntity(entity); setTimeout(vdraw.Refresh);//post a refresh command } vdrawobj.scriptCommand.arc([[2,2,0],3.0, vdgeo.DegreesToRadians(45), vdgeo.DegreesToRadians(135)] , actionentityadded); |
Remarks
See Also