scale the passed entities by a point reference in worldcs. It also write to
UndoHistory and script buffer
Syntax
Example
C# | Copy Code |
---|
//1. prompt the user for selection vdrawObj.scriptCommand.select(null,function (_vdcanvas) { _vdcanvas.scriptCommand.scale(); } ); //2. No user prompt do this action for all active layout entities var entities = []; var layout = vdcanvas.GetActiveLayout(); for (var i = 0; i < layout.Entities.Items.length; i++) { var h = layout.Entities.Items[i]; fig = vdrawObj.GetEntityItem(h); entities.push(fig); } vdrawObj.scriptCommand.select(entities,function (_vdcanvas) { _vdcanvas.scriptCommand.scale([0,0,0],10); } );//scale from 0,0 10 times biger |
See Also