INDEX returns the integer value of the corresponding ressource.
Syntax
INDEX (resource_type, resource_name)
Parameters
resource_type
: the type of the resource. resource_type
can be one of the foolowing types
MATERIAL
FILL
STYLE
TEXTURE
FOIL
HATCHING
PATTERN
BITMAP
PATTERN_LINE
LAYER
FACE_STYLE
resource_name
: the name of the resource in double quotes. resource_name
is case sensitive.
Remarks
The ressource has to be defined previously with DEFINE..., except with layers, where INDEX returns the layer number of a layer short name. e.g. INDEX (LAYER, "DE_GEN01") will return 3700 (with an english Allplan version, in other language versions you will need the localized layer short name).
Usable since script version 1.1 (Allplan 2012-1).
(C) ALLPLAN GmbH |
Privacy policy |