Hello,
I´m trying to make a simple code that replicate de effect on clicking on the save views name in the Quick properties when we click on the model floor.
Is there a command or a different way to accomplish this?
Hello,
I´m trying to make a simple code that replicate de effect on clicking on the save views name in the Quick properties when we click on the model floor.
Is there a command or a different way to accomplish this?
string viewName = "View 1"; applicationcommand("changeperspview", viewName, activedocumentnode());
This works well running in the script window if the 3D view is already the selected window. Is there a way to make this work when some non-3D window is active? For example, I want someone to be able to push a button (run the code in the onPress) on a dashboard and have the model open up a 3D window in the specified view.
This answer shows you how to loop through all open 3D views.
To open a new 3D view you can use this command:
treeenode newView = applicationcommand("perspectiveview");
Either way you just replace activedocumentnode() with your chosen view.
11 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved