I’ve encountered a weird situation here.
Running with SU2020 on Win 10 and Mac Catalina returned different result.
I was using Sketchup.send_action(CONSTANT) to setup the top, front, right views first, i.e.
Sketchup.send_action("viewTop:") page = Sketchup.active_model.pages.add "Top View" Sketchup.send_action('viewFront:') page = Sketchup.active_model.pages.add "Front View"
End up on Mac this works, returned with 2 new pages setup in respective Top and Front views - but on Windows, this doesn’t work at all using the same method - the camera location never changes, remains as “Last saved SketchUp view” which is a general perspective view there.
As my second step was to send these pages to LO, on Mac it works well - Perspective view showed up in LO as expected, but on Windows I got an error message from the console saying “Sketchup view must be Axonometric”
I also tried the numerical commands (but in the API we all know the description is these numbers may not be supported in the future where may eventually getting universalised) - using the numbers also doesn’t work at all on Windows
Sketchup.send_action(10501) page = Sketchup.active_model.pages.add "Top View" Sketchup.send_action(10502) page = Sketchup.active_model.pages.add "Front View"
So 2 questions:
1 Why this send_action is not working properly on Windows?
2 send_to_layout why on Windows “requires” the view must be Axonometric while Mac works perfectly fine?
Thanks a ton in advance!