Perspective / Orthographic projection

Perspective / Orthographic projection

fabian.steinruck
Contributor Contributor
1,606 Views
3 Replies
Message 1 of 4

Perspective / Orthographic projection

fabian.steinruck
Contributor
Contributor

Hello,

 

i would like to change Perspective / Orthographic projection in a 3D Modell view via API.



I could not find the right class in the documentation.

Are the first two not available via api?

 

Screenshot.png

 

i found something in the doc but i cant see in which class it goes

ProjectionTypeEnum Enumerator Description

Constants specifying the projection type.

Methods

NameValueDescription
kOrthographicProjection86273Orthographic projection.
kPerspectiveProjection86274Perspective projection.
0 Likes
Accepted solutions (2)
1,607 Views
3 Replies
Replies (3)
Message 2 of 4

Frederick_Law
Mentor
Mentor
Accepted solution

Maybe Camera:

https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-AF417DB3-323F-40D6-8C8C-35D73611DD4E

 

View doesn't have options for Ortho:

https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-68F79E38-F7BD-4700-A08E-6E8E928C4825

 

There is no user command/event for Ortho and Perspect view from EventWatcher.

0 Likes
Message 3 of 4

JelteDeJong
Mentor
Mentor
Accepted solution

try this:

Dim cam As Camera = ThisApplication.ActiveView.Camera
cam.Perspective = True
cam.ApplyWithoutTransition()

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 4 of 4

fabian.steinruck
Contributor
Contributor

Thank you both!

0 Likes