To set Navisworks window size by aspect ratio

To set Navisworks window size by aspect ratio

k-horiYJ27A
Contributor Contributor
934 Views
3 Replies
Message 1 of 4

To set Navisworks window size by aspect ratio

k-horiYJ27A
Contributor
Contributor

Hello everyone!
I am a beginner who has started learning NavisWorksApi.
I am currently looking into how to change the NavisWorks window size to 16:9 aspect ratio. (See attached image).
I am thinking that perhaps I can change the setting from ComAPI, but I don't know how...

Can anyone offer a solution?
Thanks!

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

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @k-horiYJ27A ,

 

No, it is not possible to modify these values using the .NET API or COM API.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 3 of 4

tetsuya_miwa
Advocate
Advocate

Use Win32 API setwindowpos.
You can get NavisWorks Main Window's handle by Autodesk.Navisworks.Api.Application.Gui.MainWindow.Handle.
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos

Message 4 of 4

k-horiYJ27A
Contributor
Contributor

Thank you very much.

Thank you also @tetsuya_miwa.
Perhaps it seems a bit too challenging for me now, so I will definitely try it when I have more experience!

0 Likes