Get Element Ids of all displaced elements in the model

Get Element Ids of all displaced elements in the model

Nathan.HilsonN67V6
Advocate Advocate
227 Views
1 Reply
Message 1 of 2

Get Element Ids of all displaced elements in the model

Nathan.HilsonN67V6
Advocate
Advocate

Is there a simple way to get a list of all of the elements in the model that are part of a displacement set? Or do I have to collect all the elements in the model and filter out elements that are part of a displacement set? Any help would be appreciated.

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

jeremy_tammik
Alumni
Alumni

Same procedure as always: 

  

  • Explore exactly how the displacement can be determined in the API, e.g., by snooping the displaced element using RevitLookup and other database analysis tools, to see what parameters, properties or other characteristics can be used to identify them
  • Construct a filtered element collector that includes a test for that characteristic
  • Optionally optimise your collector for huge number of elements

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open