Inhalt

Index

NEWPARAMETER

NEWPARAMETER creates a new parameter. Existing parameters with the same name are replaced.

Syntax

NEWPARAMETER type , name [,value [, descr [, group [, attr [, dim1 [,dim2 [,export [,save [,geom ]]]]]]]]]

Parameters

type (integer): parameter type

1=LENGTH
2=ANGLE
3=STRING
4=BOOL
5=INTEGER
6=REALNUM
7=COLOR
8=PEN
9=STROKE,
10=LAYER,
11=MATERIAL,
12=FILL,
13=PATTERN,
14=HATCH,
15=FACESTYLE,
16=DRAWINGTYPE

name (string): identifier

value (string or decimal): value (also default value for array)

descr (string): description (default "")

group (string): group (default "")

attr (integer): associated attribute number (-1=default if no association)

dim1, dim2 (integer):

dim1 is the first dimension of the parameter, 0 if not set.
dim2 is the second dimension of the parameter, 0 if not set.

dim1 = 0, dim2 = 0: the parameter is a scalar parameter,

dim1 ¹ 0, dim2 = 0: the parameter is a 1 dimensional array,

dim1 ¹ 0, dim2 ¹ 0: the parameter is a 2 dimensional array

export (integer): 0 or 1 --> set the export flag

save (integer): 0 or 1 --> set the save flag

geom (integer): 0 or 1 --> set the geom flag

Remarks

Restriction of parameters:

If dim1 or dim2 < 0 the adressed dimension is expandable

Usable since script version 2.1 (Allplan 2015-0).



Allplan

(C) ALLPLAN GmbH

Privacy policy