Skip to content

GET_DRAWING_AREA_SIZE ​

GET_DRAWING_AREA_SIZE returns the size of the drawing area of the given model passed witn modelid.

Syntax ​

leo-grammar
CC "Modeling" GET_DRAWING_AREA_SIZE [ model:idValue ].


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


# --> RESULT ecode:intValue w:measureValue h:measureValue

Parameters ​

  • modelid (idValue, optional) -

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • w (measureValue)
  • h (measureValue)

Details ​

The model has to be open in a modeling window for this command. The command will not work, if the model is only loaded in the core! If no modelid is passed, the current active model will be taken.

The return arguments (w,h) contain the width and the height of the drawing area. The return value ecode is set to 0 if the visible are could be computed.

See Also ​

Examples ​

asc
SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:modelid

CC "Modeling" debug GET_DRAWING_AREA_SIZE modelid:(VAL modelid)
SEND "GET_ACTIVE_MODEL" to:"Modeling" answer:modelid

CC "Modeling" debug GET_DRAWING_AREA_SIZE modelid:(VAL modelid)

Versions and Changes ​

Available since ADOxx 1.3