Skip to content

SET_ZOOM_FACTOR ​

SET_ZOOM_FACTOR sets the current zoom factor of the model with the passed modelid.

Syntax ​

leo-grammar
SetZoomFactor :	SET_ZOOM_FACTOR [ modelid:idValue ] zf:intValue.


# --> RESULT ecode:intValue

Parameters ​

  • modelid (idValue) -
  • zf (intValue) -

Returns ​

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

Details ​

If no modelid is passed, the current active model will be taken. The percentage value to set is passes with zf

See Also ​

Examples ​

asc
CC "Modeling" SET_ZOOM_FACTOR zf:50

Sets the zoom factor to 50%

Versions and Changes ​

Available since ADOxx 1.3