Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ViewCube rotation through API

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
erik.martinsson
2155 Views, 2 Replies

ViewCube rotation through API

I'm trying to access the ViewCube trough the API. Through the CommandManager.Controldefinitions i'm able to execute the commands for ViewCube: Front/Right/Top using either AppFrontViewCmd/AppRightViewCmd/AppTopViewCmd

 

commandManager.ControlDefinitions["AppFrontViewCmd"].Execute();

 

 

The commands for rotating to Left/Bottom/Back is not present in the same way as the commands above - and it seems a bit strange that only 3 sides of the ViewCube is availabe. How can I fix this, so that i'm able to rotate to any side of the ViewCube?

 

Tags (3)
2 REPLIES 2
Message 2 of 3

Hi erik.martinsson,

 

Here is a quick iLogic example that I had on hand.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

Dim oCamera As Camera 
oCamera = ThisApplication.ActiveView.Camera 
oCamera.ViewOrientationType = 10756 'Back View 
oCamera.Apply
'list of view enums: ' kTopViewOrientation = 10754 ' kRightViewOrientation = 10755 ' kBackViewOrientation = 10756 ' kBottomViewOrientation = 10757 ' kLeftViewOrientation = 10758 ' kIsoTopRightViewOrientation = 10759 ' kIsoTopLeftViewOrientation = 10760 ' kIsoBottomRightViewOrientation = 10761 ' kIsoBottomLeftViewOrientation = 10762 ' kFrontViewOrientation = 10764

 

Message 3 of 3

Well that certainly looks like something that would work. Will try it out first thing monday morning - Thanks alot 😃

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

Post to forums  

Autodesk Design & Make Report