About 3D views properties

About 3D views properties

nitinjambhale
Advocate Advocate
295 Views
1 Reply
Message 1 of 2

About 3D views properties

nitinjambhale
Advocate
Advocate

Hello All,

Is there any way we can apply ViewDirection same as that of when we click on "Home" button for active 3D view programmatically with Revit API?

 

Thank You,

- Nitin J.

0 Likes
296 Views
1 Reply
Reply (1)
Message 2 of 2

matthew_taylor
Advisor
Advisor

Hi @nitinjambhale,

It appears that GetHomeCamera will give you what you need:

http://www.revitapidocs.com/2017.1/dadadb67-e2f8-f2f4-0346-742cea12452f.htm

Then you can use its properties with this to set it:

 view3D.SetOrientation(New DB.ViewOrientation3D( ....

(Intellisense should make it all pretty obvious.)

 


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?