DEFINE MATERIAL
defines a material, which can be referred to by name further on in other scripts.
Material definitions prior to the definition of this material may be included in any script; however, materials defined that way can be used solely in those scripts, in which they are defined, and their subsequent second generation-scripts.
Syntax
DEFINE MATERIAL "name" type, parameter1, parameter2, ... parametern
Parameters
name
(string): name of the material, by which can be referred to this material
type
(decimal): type of material
0: general definition, n=16
1: simple definition, n=9 (additional parameters are constants or calculated from given values)
2: matte (RGB components of the surface color, other parameters deriving from the color)
3: metal (RGB components of the surface color, other parameters deriving from the color)
4: plastic (RGB components of the surface color, other parameters deriving from the color)
5: glass (RGB components of the surface color, other parameters deriving from the color)
6: glowing (RGB components of the surface color, other parameters deriving from the color)
7: constant (RGB components of the surface color, other parameters deriving from the color)
10: general definition with fill parameter, n=17
11: simple, hatched (parameters: red, green, blue, streulicht, diffus, spiegelung, transparenz, glanzlicht, abminderung_trans, schraffurindex)
12: matte, hatched (parameters: red, green, blue, schraffurindex)
13: metal, hatched (parameters: red, green, blue, schraffurindex)
14: plastic, hatched (parameters: red, green, blue, schraffurindex)
15: glass, hatched (parameters: red, green, blue, schraffurindex)
16: glowing, hatched (parameters: red, green, blue, schraffurindex)
17: constant, hatched (parameters: red, green, blue, schraffurindex)
20: general definition with fill, color index of fill and index of texture parameters, n=19
21: simple, hatched and texturized (parameters: red, green, blue, streulicht, diffus, spiegelung, transparenz, glanzlicht, abminderung_trans, schraffurindex, schraffurstift, texturindex)
22: matte, hatched and texturized (parameters: red, green, blue, schraffurindex, schraffurstift, texturindex)
23: metal, hatched and texturized (parameters: red, green, blue, schraffurindex, schraffurstift, texturindex)
24: plastic, hatched and texturized (parameters: red, green, blue, schraffurindex, schraffurstift, texturindex)
25: glass, hatched and texturized (parameters: red, green, blue, schraffurindex, schraffurstift, texturindex)
26: glowing, hatched and texturized (parameters: red, green, blue, schraffurindex, schraffurstift, texturindex)
27: constant, hatched and texturized (parameters: red, green, blue, schraffurindex, schraffurstift, texturindex)
Special meanings for types 20-27:
If the pen number is zero, vectorial hatches will be generated with the active pen. (not supported)
Zero value for a texture index allows you to define materials without a vectorial hatch or texture.
parameter1...n
(decimal): The actual number n
of parameters possible depends on the material type; for further information, see the parameter descriptions of type
.
Corresponding commands
[set
] MATERIAL name_string
[set
] MATERIAL index
All surfaces generated after a material setting will obtain this material, until the next material is stated.
Exceptions are surfaces in the PRISM_B
, PRISM_C
, PRISM_F
, PRISM_H
, PRISM_S
, SOLID_SLAB_C
, SOLID_WALL_
, SOLID_WALL_B
, SOLID_WALL_X
, CROOF_
, MESH_P
elements.
Index is a constant referring to a material 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 material's name is only recommended with the prior use of the INDEX
function.
INDEX 0
means that the material used for the surfaces is assigned to the line color.
Default: MATERIAL 0
if the script does not contain a MATERIAL
statement.
Remarks
Usable since script version 1.1 (Allplan 2012-1).
(C) ALLPLAN GmbH |
Privacy policy |