ViewCube rotation through API

ViewCube rotation through API

Anonymous
Not applicable
2,443 Views
2 Replies
Message 1 of 3

ViewCube rotation through API

Anonymous
Not applicable

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?

 

Accepted solutions (1)
2,444 Views
2 Replies
Replies (2)
Message 2 of 3

Curtis_Waguespack
Consultant
Consultant
Accepted solution

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

 

EESignature

Message 3 of 3

Anonymous
Not applicable

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

0 Likes