Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create new viewport from API commands

1 REPLY 1
SOLVED
Reply
Message 1 of 2
MCameron3d
784 Views, 1 Reply

Create new viewport from API commands

Hi all,

 

I am looking to programmicaly create a 2x2 viewport structure, similar to that of the split viewports button.

 

This will run via a custom built plugin. Does anyone know where in the API I can create and apply new viewports?

 

Cheers,

 

Marc C

1 REPLY 1
Message 2 of 2
Khez
in reply to: MCameron3d

Viewports are called "Views" in the Naviswork API.

 

You might want to check out the .net api reference manual located in \Navisworks Simulate 2014\api\NET\documentation

 

Here's what it says about the view class:

"In Navisworks you can split the main window to get two different views of the same model, by this method using the API you would have access to two views (one of which can be accessible as Document.ActiveView) both referring to the same document."

(Reference Guide > Autodesk.Navisworks.Api Namespace > View Class)

 

I've never created views, and it doesn't seems like there is methods in the view class to create or copyfrom views, so I wonder how could one do that. Maybe through the COM API.

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report