Inventor Engineer-To-Order (Read-Only)
Welcome to Autodesk’s Inventor ETO Forums. Share your knowledge, ask questions, and explore popular Inventor ETO topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I write a rule to Zoom All in Inventor ETO

2 REPLIES 2
Reply
Message 1 of 3
johnasp1
556 Views, 2 Replies

How can I write a rule to Zoom All in Inventor ETO

  In AutoCad Intent I am able to use this to Zoom all

'acad_command({"Zoom", "ALL"})'

How can I write a rule to Zoom All in Inventor ETO.

Thanks

2 REPLIES 2
Message 2 of 3
AlexKorzun
in reply to: johnasp1

Hi

 

I assume your goal is  to show the whole Document in the view.

The Document should be visible.

 

For ETO Components, activate the Document and fit the contents into Active view

 

                    doc.Activate();
                    ThisApplication.ActiveView.Fit(true);

This code should be invoked outside of the Render process.

Thank you,




Alex Korzun
Inventor-Revit Interop / Inventor-Fusion Interop / Inventor ETO
Autodesk, Inc.

Message 3 of 3
ludesroc
in reply to: johnasp1

You can also add camera rules in the root design of your model... ' Zoom Extend. Parameter Rule cameraEnabled? As Boolean = True Parameter Rule cameraFit? As Boolean = True
Ludesroc

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report