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?
i found something in the doc but i cant see in which class it goes
ProjectionTypeEnum Enumerator Description
Constants specifying the projection type.
Methods
Name | Value | Description |
kOrthographicProjection | 86273 | Orthographic projection. |
kPerspectiveProjection | 86274 | Perspective projection. |
Solved! Go to Solution.
Solved by JelteDeJong. Go to Solution.
Solved by Frederick_Law. Go to 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.
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.
Blog: hjalte.nl - github.com
Can't find what you're looking for? Ask the community or share your knowledge.