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

Revit API Selecting Linked Objects

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
bbyrum
8930 Views, 8 Replies

Revit API Selecting Linked Objects

When using Revit with linked Revit files, I can select an indivitual element with Tab/Select and view some properties. However, if I run Snoop Current Selection, it comes up blank. Is there a way, through the API to Tab/Select such an entity?

 

Billy

8 REPLIES 8
Message 2 of 9
Joe.Ye
in reply to: bbyrum

 

Current Revit API cannot access the selected objects in linked model (Revit 2013).

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
Message 3 of 9
agimpert
in reply to: Joe.Ye

I was wondering if this has been changed for Revit 2014?

 

I just did a quick test, and it appears that elements selected in a linked model are stil not part of ActiveUIDocument.Selection.Elements. Is there still no way for the API to return elements selected in a linked model? 

 

Smiley Frustrated

Message 4 of 9
Joe.Ye
in reply to: agimpert

Revit 2014 exposed the API functionality to pick elements in linked model.
PickObject & PickObjects can pick elements in linked model.


Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
Message 5 of 9
jeremytammik
in reply to: Joe.Ye

Hi agimpert,

 

I just answered you related question on The Building Coder:

 

http://thebuildingcoder.typepad.com/blog/2013/03/revit-2014-api-and-room-plan-view-boundary-polygon-...

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 6 of 9
agimpert
in reply to: jeremytammik

Thank you both for the quick answers!

Adam

 

Message 7 of 9
jeremytammik
in reply to: agimpert

Hi Adam,

 

Thank you for the appreciation!


Here is another idea regarding the selection of elements in a linked file:

http://thebuildingcoder.typepad.com/blog/2012/05/selecting-a-face-in-a-linked-file.html

Cheers, Jeremy.



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 8 of 9
jeremytammik
in reply to: jeremytammik

Dear Adam,

Just for future reference, I submitted a wish list item SPR #237075 [PickObjects in linked document] for this.

Cheers, Jeremy.



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 9 of 9
mark.jaeckel
in reply to: jeremytammik

hi all,

 

i understand that it's not possible to select elements in a linked file. Bevor i found this thread i tested it by myself. Actually we have the same issue. We want to identify and select elements (own generic models) by button to copy them in the current Revit file using clipboard.

 

The identification of these elements was easy. The filter returns 37 elements (view screenshot), but the elements are not selected in the active view and if i push them into the clipboard, revit crashes. Is this the same problem?

 

do you have an idea how i can go round ths problem? Is the a better way to copy the elements to the current file?

 

thanks

Mark

 

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community