Skip to content

GET_VISIBLE_AREA ​

GET_VISIBLE_AREA returns the bounds of the currently visible area of the given model passed with modelid.

Syntax ​

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


# --> RESULT ecode:intValue x1:measureValue y1:measureValue x2:measureValue y2:measureValue
CC "Modeling" GET_VISIBLE_AREA [ model:idValue ].


# --> RESULT ecode:intValue x1:measureValue y1:measureValue x2:measureValue y2:measureValue

Parameters ​

  • modelid (idValue) -

Returns ​

  • ecode (intValue) - the return value ecode is set to 0 if the visible are could be computed.
  • x1 (measureValue)
  • y1 (measureValue)
  • x2 (measureValue)
  • y2 (measureValue)

Details ​

If no modelid is passed, the current active model will be taken.

The return arguments (x1,y1) and (x2,y2) contain the upper left and lower right coordinates of the visible rectangle in the modeling window.

See Also ​

Examples ​

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

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

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

Versions and Changes ​

Available since ADOxx 1.3