Any trick for switching ProjectionType to PerspectiveWithOrthoFaces

Any trick for switching ProjectionType to PerspectiveWithOrthoFaces

Maxim-CADman77
Advisor Advisor
573 Views
2 Replies
Message 1 of 3

Any trick for switching ProjectionType to PerspectiveWithOrthoFaces

Maxim-CADman77
Advisor
Advisor

As far as Autodesk deliberetly ignores customer's requests (archived corresponding idea*) for adding ability to set default ProjectionType to "Perspective With Ortho Faces" I suggest try to invent some trick ourselves.

For example is it possible to emulate calling for ViewCube content menu and then (after a bit delay) emulate pressing "F" (or another "underlined" key according to current Inventor session localization)?

PerspectiveWithOrthoFaces.png

..and hook this to activatation of 3Dmodel's graphic window.

 

* Meant https://forums.autodesk.com/t5/inventor-ideas/add-perspective-with-ortho-faces-as-a-default-in-appli...

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Accepted solutions (1)
574 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor

I expect that the option PerspectiveWithOrthoFaces is a combination of settings of the camera. If you can figure out what those settings are then you can make an iLogic rule with those settings.  That rule could be triggerd on opening of each file? (i couldn't find the correct settings)

Anyway you can check the camera settings like this.

Dim cam As Camera = ThisApplication.ActiveView.Camera 
MsgBox(cam.Perspective & " - " & cam.PerspectiveAngle)

The properties Perspective and PerspectiveAngle are shown here in a msgbox. More properties can be found in the help files.

If you know what those settings are then your settings rule could look like this:

Dim cam As Camera = ThisApplication.ActiveView.Camera 
cam.Perspective = True
cam.PerspectiveAngle = 0.00001
cam.Apply()

Maby you want to learn more about working with the camera api, a good starting point are these posts by @BrianEkins 

https://modthemachine.typepad.com/my_weblog/2013/09/working-with-cameras-part-1.html 

https://modthemachine.typepad.com/my_weblog/2013/09/working-with-cameras-part-2.html 

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 3

Maxim-CADman77
Advisor
Advisor
Accepted solution

"Customer solution" that did the trick for me available here - https://forums.autodesk.com/t5/inventor-forum/set-perspective-with-ortho-facesas-the-default-project...

Please vote for Inventor-Idea Text Search within Option Names

0 Likes