%%PageItemTitle%% $$Methods$$

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
ScriptCommands Class Methods
See Also 
vdWebLibrary Namespace : ScriptCommands Class

For a list of all members of this type, see ScriptCommands members.

Public Methods

 NameDescription
Public MethodActiveSelection Returns an array copy of the active selected entities. ,  
Public Methodarc Add an arc to the document.  
Public Methodblockref Add a block reference to the document.  
Public Methodcircle Add a circle to the document.  
Public MethodclearCommands Clear the script command buffer.  
Public MethodclearSelection Clears - Empty the Active selection. ,  
Public Methodcolor Selects the passed color as active. Commands that create new objects like line set the color of created entities to that color.  
Public Methodcopy Copy the passed entities from a point in worldcs to an other in worldcs. It also write to UndoHistory and script buffer  
Public Methoddim Add a dimension block to the document according the the active dimension style properties dimvar.  
Public Methoddimvar Set dimension style properties used to draw a dimension executed be command dim  
Public Methoddoubleline Add a doubleLine polyline to the document.  
Public Methoddoublelinerect Add a doubleLine rect to the document.  
Public Methoddoublelinewidth Set the passed value as active width in Drawing units for the double line draw commands. Commands that create new double line like doubleline and doublelinerect select this value as the width of eah segment in drawing units.  
Public MethodenableScript Enable / Disable the writing to script commands buffer  
Public Methoderase Erase the default active selection entities, and clear the ActiveSelection by calling the clearSelection method. It also write to UndoHistory and script buffer  
Public MethodgetCommands Returns the current script command buffer  
Public Methodhatch Select active hatch properties for hatched filled objects (rect polyline circle arc ellipse).  
Public Methodimage Add an image reference to the document.  
Public MethodisActive Returns true is script is enable else false enableScript  
Public Methodlayer Set the passed layer name as active. Commands that create new objects like line add the created entities to that layer.  
Public Methodlayout Set the passed layout name as active. Commands that create new objects like line add the created entities to that layout.  
Public Methodline Add a line to the document.  
Public Methodlinetype Set the passed linetype name as active. Commands that create new objects like line select this linetype for the created entities.  
Public Methodlineweight Set the passed lineweight as active. Commands that create new objects like line select this lineweight for the created entities.  
Public Methodltscale Set the passed linetypescale as active. Commands that create new objects like line select this linetypescale for the created entities.  
Public Methodmove move the passed entities from a point in worldcs to an other in worldcs. It also write to UndoHistory and script buffer  
Public MethodparseCommands Parse the passed command buffer. If the passed commands are undefined the it parses the active script command buffer getCommands  
Public Methodpenwidth Set the passed penwidth as active. Commands that create new objects like line select this penwidth for the created entities.  
Public Methodpolyline Add a polyline to the document.  
Public Methodrect Add a rect to the document.  
Public Methodredo Redone the last item stored in the redo list and the last command in script buffer.If a start group item is last then redones all items of the group in redo history.  
Public MethodRegisterFigure Add the passed figure to the active layout of the selected document and set a new HandleId for the figure. Also write the add action to the undo history so the figure will be mark as deleted if the user call the undo command.  
Public Methodrotate rotate the passed entities around a point reference in worldcs with passed angle in radians. It also write to UndoHistory and script buffer  
Public Methodscale scale the passed entities by a point reference in worldcs. It also write to UndoHistory and script buffer  
Public Methodselect Add passed entities to default active selection  
Public Methodtext Add a text to the document.  
Public Methodtextstyle Set the passed textstyle name as active. Commands that create new text objects like text select this textstyle for created entities.  
Public Methodthickness Set the passed thickness value as active. Commands that create new objects like line select this thickness for the created entities and will be drawn extruded to their extrusion vector.  
Public Methodtooltip Set the passed textvalue as active tooltip for the new added entities  
Public Methodundo Undone the last item stored in the undo list and the last command in script buffer.If an end group item is last then undone all items of the group in undo history.  
Public Methodundogroup Begin/Close a group of commands in order to be undo or redo with one single action.  
Top

See Also