Scripting
Instead of defining a Property as described in the superior chapter Properties, it is possible to write a VB script. Therefore you insert a child element with the name <Propertyname>Script (e.g. TextScript). If a script is defined, the attribute is ignored.
A script is supported for the following XML attributes (within the section Properties):
•Standard
Layer, LineType, Color, RgbColor
•Text
Text, Height, Alignment, ObliqueAngle, ScaleFactor, XOffset, YOffset, Position, TextFont
•Insert (Block)
Blockname, ScaleX, ScaleY, ScaleZ, CoordX, CoordY,
•Text or Insert
Rotation, AddRotation
•Hatch
PatternName, PreverseBoundary, HatchBoundaryLayer, HatchBoundaryLineType, HatchBoundaryColor, HatchBoundaryRgbColor, HatchScale, HatchAngle
•Polyline
Width
•Acad attributes
oStandard attributes
Layer, LineType, Color, RgbColor
oName, Index, Value, Rotation, Height, XOffset, YOffset, Tag, FollowFirstAtt, Position
|
Scripting does not work if the input feature class is an annotation feature class. |
Example of a Rotation Script
Requirement:
If symbols are set in GIS with a geographic rotation and the rotation must look identical in AutoCAD, a script must additionally be added to the configuration.
Configuration:

respectively:
