%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
ltscale Method
See Also  Example
vdWebLibrary Namespace > ScriptCommands Class : ltscale Method
nvalue
A number that represents the scale of the selected linetype. The value must be positive greater than zero
Set the passed linetypescale as active. Commands that create new objects like line select this linetypescale for the created entities.

Syntax

JScript 
public function ltscale( 
   nvalue : double
);

Parameters

nvalue
A number that represents the scale of the selected linetype. The value must be positive greater than zero

Example

C#Copy Code
vdrawobj.scriptCommand.linetype('center'); 
vdrawobj.scriptCommand.ltscale(5.0); 
vdrawobj.scriptCommand.line();//all the user lines will be added using the linetype center scaled by 5 drawing units.

See Also