%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
AddAttribDef Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : AddAttribDef Method
block
The block where the vdAttribDef object will be added.
height
The height of the text of the attribute in drawing units.
rotation
The rotation of the text of the attribute in drawing units.
tag
The tag of the vdAttribDef object.
value
The value of the vdAttribDef object. This string will be displayed on the blockSymbol.
position
The position of the attribute in entity coordinates.
Adds a new vdAttribDef object to the passed block.

Syntax

JScript 
public function AddAttribDef( 
   block : Object,
   height : int,
   rotation : double,
   tag : String,
   value : String,
   position : Object
) : Object;

Parameters

block
The block where the vdAttribDef object will be added.
height
The height of the text of the attribute in drawing units.
rotation
The rotation of the text of the attribute in drawing units.
tag
The tag of the vdAttribDef object.
value
The value of the vdAttribDef object. This string will be displayed on the blockSymbol.
position
The position of the attribute in entity coordinates.

Return Value

The created attribute object.

See Also