User LayoutEditorFull Thursday 6th September 2018
There is a setZoomMode() method in LayoutEditor Python. I couldn't find the same method in regular macro classes. Can you add this method? Or is there a way to make ZoomMode activated by default when LayoutEditor starts?
Jürgen LayoutEditorFull Thursday 6th September 2018
setZoomMode() will set the user interface in a mode to zoom in/out with the mouse.
In LayoutScript for Python/Ruby is no user interface and no coordinates can be enter by mouse. So a setZoomMode as well as all other setModes makes no sense.
If you need to define a view region like for making a screen shot with LayoutScript, please use the scale(p1,p2) function.
User LayoutEditorFull Friday 7th September 2018
No. What I want to do is to make the Zoom Mode activated by default when I start LayoutEditor. Is there a way to do that?
Jürgen LayoutEditorFull Saturday 8th September 2018
The only way to start in the Zoom Mode is in the moment to start the LayoutEditor with the '-v' command line parameter in the viewer mode. In this case any editing feature will be disabled. You can also set the Viewer Mode in the setup under *User Interface/Mode/Viewer Mode*.