Show/Select Camera in Plan View via API

Show/Select Camera in Plan View via API

dnenovMXKU9
Enthusiast Enthusiast
675 Views
2 Replies
Message 1 of 3

Show/Select Camera in Plan View via API

dnenovMXKU9
Enthusiast
Enthusiast

Greetings,

 

A client has asked us to create a user friendly way of showing all cameras in plan view. This practice tends to use a huge amount of cameras and they find it difficult to naviage through all their saved 3D Views.

 

Is there a way to access the 'Show Camera' command that you get from teh context menu of a camera view? I have looked into the Camera Class and, in theory, you could retrieve the placement of each camera object in plan view, but I blank on how you can show that in a way that will allow you to select an actual camera.

 

Any input is much appreciated.

 

Happy Thanksgiving!

 

 

0 Likes
676 Views
2 Replies
Replies (2)
Message 2 of 3

FaustoMendezcom
Enthusiast
Enthusiast

I guess you could use windows UI Automation to access the Show camera command but the user will only see one of the cameras at a time no a view of multiple ones.  

 

what you may be able to do using the Revit api  use the camera information to automatically place matchlines and view reference to the camera view.

 

camera.PNG

 

here is a quick video. 

https://knowledge.autodesk.com/community/screencast/d9173a38-87dc-4370-b51d-7ac8fae47345

 

 

Hope it helps 🙂
-------------------------------------------------------------------------------------
www.faustomendez.com
0 Likes
Message 3 of 3

dnenovMXKU9
Enthusiast
Enthusiast

Dear FaustoMendezcom,

 

Thank you so much for both your effort and your answer. Indeed, that's the worfklow that we've outlined too, but currently placing Reference Views is not exposed by the API. I have created a whislist item as per Jeremy Tammik's proposal.

 

The moment we have that part of the workflow going we will be able to get to what you have in the video, which is exactly what we are hoping for.

 

Thank you once again,

 

Deyan

 

 
0 Likes