Inhalt

Index

DEFINE HATCHING

DEFINE HATCHING defines a hatching, which can be referred to by name further on in other scripts.

Hatching definitions prior to the definition of this hatching may be included in any script; however, hatchings defined that way can be used solely in those scripts, in which they are defined, and their subsequent second generation-scripts.

Syntax

DEFINE HATCHING name, id [, scale_dependent, angle, ref_x, ref_y, red, green, blue, alpha]

Parameters

name (string): name of the hatching, by which can be referred to this hatching

id (integer): number of the hatching

scale_dependent (integer): appearance of the hatching depends on scale or not

with scale_dependent may be 0 or 1
0: not scale dependant
1: scale dependant

angle (decimal): rotation angle (default: 0.0)

ref_x, ref_y (decimal): X resp. Y coordinate of the reference point (default: (0.0;0.0))

red, green, blue (integer): color palette for masking/background color (default: white)

with 0 £ red, green resp. blue £ 256

alpha (integer): tilt angle of the hatching

with 0 £ alpha £ 100

Corresponding commands

[set] HATCHING name_string

[set] HATCHING index

Index is a constant referring to a hatch 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 hatching's name is only recommended with the prior use of the INDEX function.

Remarks

Usable since script version 1.1 (Allplan 2012-1).



Allplan

(C) ALLPLAN GmbH

Privacy policy