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: 

Perspective / Orthographic projection

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
fabian.steinruck
241 Views, 3 Replies

Perspective / Orthographic projection

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.
Tags (4)
Labels (1)
3 REPLIES 3
Message 2 of 4

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.

Message 3 of 4

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

Message 4 of 4

Thank you both!

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

Post to forums  

Autodesk Design & Make Report