Skip to content

SET_DRAWING_AREA_MIN_SIZE ​

SET_DRAWING_AREA_MIN_SIZE sets the minimum size of a model's drawing area.

Syntax ​

leo-grammar
CC "Modeling" SET_DRAWING_AREA_MIN_SIZE	[ model:idValue ]
										w:measureValue h:measureValue .


# --> RESULT ecode:intValue .
CC "Modeling" SET_DRAWING_AREA_MIN_SIZE	[ model:idValue ]
										w:measureValue h:measureValue .


# --> RESULT ecode:intValue .

Parameters ​

  • modelid (idValue) -
  • w (measureValue)
  • h (measureValue) .

Returns ​

  • ecode (intValue) - the return variable ecode is set to 0 if the command call was successful, to 1 otherwise.

Details ​

The model whose minimum drawing area size shall be set can be specified with modelid. Default is the current active model.

The minimum size is specified with w (width) and h (height). For values smaller than 5cm or larger than 50m nothing is done and an error code is returned.

If the new minimum size is larger than the current size, the current size is extended automatically.

See Also ​

Examples ​

asc
CC "Modeling" SET_DRAWING_AREA_MIN_SIZE w:30cm h:10cm
CC "Modeling" SET_DRAWING_AREA_MIN_SIZE w:30cm h:10cm

Versions and Changes ​

Available since ADOxx 1.3