Skip to content

GET_GFX_SELECTED_AREA ​

GET_GFX_SELECTED_AREA returns the points x1, y1, x2 and y2 of the selected gfx area as measure values of the passed modelid.

Syntax ​

leo-grammar
CC "Modeling" GET_GFX_SELECTED_AREA [ modelid:idValue ] .


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

Parameters ​

  • modelid (idValue) -

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • x1 (measureValue)
  • y1 (measureValue)
  • x2 (measureValue)
  • y2 (measureValue)

Details ​

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

The return variable ecode is set to 0 if the command worked, to 1 if an error occured.

See Also ​

Examples ​

asc
CC "Modeling" debug GET_GFX_SELECTED_AREA

Versions and Changes ​

Available since ADOxx 1.3