Arbortext IsoDraw > Macro Language Reference > Object Data Types > Sub Data Types for Attribute Preferences > .linestyles[ ]
  
.linestyles[ ]
This property gives access to all style attributes but it can not be used directly.
.linestyles[].name
Returns and sets the name of the linestyle as string.
app.linestyles[1].name = "myLineStyle"
.linestyles[].type
Returns and sets the type of the linestyle as integer. The allowed values are 0 for “solid”, 1 for “dashed” and 2 for “dotted”.
app.linestyles[1].type = 2
.linestyles[ ].startMark
Returns and sets the start mark of the linestyle as integer between 0 and 46 (0 = no mark).
app.linestyles[1].startMark = 33
.linestyles[ ].endMark
Returns and sets the end mark of the linestyle as integer between 0 and 46 (0 = no mark).
app.linestyles[1].endMark = 7
.linestyles[ ].minEndLength
Returns and sets the minimum end length of the linestyle as float.
app.linestyles[1].minEndLength = 33
.linestyles[ ].pattern[ ]
Returns and sets the pattern values.
app.linestyles[1].pattern[1]
Returns and sets the pattern values as float. This applies to linestyles.type 1 and 2. If the linestyle.type property is set to "dotted" and the first pattern is greater than 0 the first pattern defines the point distance. If the linestyle.type property is set to "dotted" and the first pattern is equal to (-256) the point distance is set to automatic.
app.linestyles[1].pattern[1] = 1
app.linestyles[1].pattern[2] = 1.5
The linestyles can be addressed by the language independent specifier (see International Names):
app.linestyles[“$ISO_DOTTED”].pattern[1] = 1.5