%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
lineweight Method
See Also  Example
vdWebLibrary Namespace > ScriptCommands Class : lineweight Method
nvalue
A number that represents the width in hundrents millimeters in screen devie. A value of 100 means 1 mm. Additionaly the following values are also supported LW_BYBLOCK , LW_BYLAYER , LW_DOCUMENTDEFAULT
Set the passed lineweight as active. Commands that create new objects like line select this lineweight for the created entities.

Syntax

JScript 
public function lineweight( 
   nvalue : double
);

Parameters

nvalue
A number that represents the width in hundrents millimeters in screen devie. A value of 100 means 1 mm. Additionaly the following values are also supported LW_BYBLOCK , LW_BYLAYER , LW_DOCUMENTDEFAULT

Example

C#Copy Code
vdrawobj.scriptCommand.lineweight(100); 
vdrawobj.scriptCommand.line();//all the user lines will be added using the a lineweight of 1  millimeter.

Remarks

If the active penwidth is not 0 then the active penwidth is used instead.

See Also