Skip to content

SET_LAYOUT ​

SET_LAYOUT sets the current page layout of a model.

Syntax ​

leo-grammar
CC "Modeling" SET_LAYOUT [ id | modelid:idValue ] 
						 [ layout:strValue ] 
						 [ orientation:Orientation ]
						 [ Scaling ]   .


Scaling :	factor:intValue 
fitonepage 
pages-height:intValue 
pages-width:intValue .


Orientation :	"automatically" | "portrait" | "landscape" .


# --> RESULT ecode:intValue .

Parameters ​

  • id(modifier, optional) -
  • modelid (idValue, optional) -
  • layout (strValue, optional) -
  • orientation (enumValue, optional) - Orientation, one of: "automatically" | "portrait" | "landscape"
  • factor (intValue) -
  • fitonepage(modifier) -
  • pages-height (intValue) -
  • pages-width (intValue) -

Returns ​

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

Details ​

By now there is no corresponding read command, but the reading the page layout status can therefore be done via the page layout model attribute.

See Also ​

Examples ​

Versions and Changes ​

Available since ADOxx 1.3