DEFINE PATTERN_LINE
defines a pattern line, which can be referred to by name further on in other scripts.
Pattern line definitions prior to the definition of this pattern line may be included in any script; however, pattern lines defined that way can be used solely in those scripts, in which they are defined, and their subsequent second generation-scripts.
Syntax
DEFINE PATTERN_LINE name, id
[, width, height, align, type, ref_line, mirror, lock_corner, scale_dependent
]
Parameters
name
(string): name of the pattern line, by which can be referred to this pattern line
id
(integer): number of the pattern line
width
(decimal): width of the pattern (default 0.1)
height
(decimal): height of the pattern (default 0.1)
align
(integer): alignment of the pattern
with align
may be
0: left
1: center
2: right
type
(integer): string together of the pattern
with type may be
0: none
1: miter
2: join
3: seamless
ref_line
(integer): appearance of the reference line
with ref_line
may be
0: reference line doesn't appear (default)
1: reference line is shown
mirror
(integer): mirroring of the pattern
with mirror
may be
0: pattern is not mirrored (default)
1: pattern is mirrored
lock_corner
(integer): corner locking of the pattern
with lock_corner
may be
0: corner of the pattern is not locked (default)
1: corner of the pattern is locked
scale_dependent
(integer): appearance of the pattern depends on scale or not
with scale_dependent
may be 0 or 1
0: not scale dependant
1: scale dependant
Corresponding commands
[set
] PATTERN_LINE name_string
[set
] PATTERN_LINE index
Index is a constant referring to a pattern line stack in the internal data structure; this stack is modified during script analysis and can also be modified from within the program. Any use of the index instead of the pattern line's name is only recommended with the prior use of the INDEX function.
Remarks
Usable since script version 1.1 (Allplan 2012-1).
(C) ALLPLAN GmbH |
Privacy policy |