Is there an API in Revit that provides the ability for A to bind to B and B to bind to A

Is there an API in Revit that provides the ability for A to bind to B and B to bind to A

BOb_Zhu
Contributor Contributor
368 Views
3 Replies
Message 1 of 4

Is there an API in Revit that provides the ability for A to bind to B and B to bind to A

BOb_Zhu
Contributor
Contributor
Is there an API in Revit that provides the ability for A to bind to B and B to bind to A
0 Likes
Accepted solutions (1)
369 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

What is A? What is B? And what do you mean by bind?

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 4

BOb_Zhu
Contributor
Contributor

I mean, both A and B are one element, A records B, and B records A.Or after binding, you can find B from A, and B can also find A

0 Likes
Message 4 of 4

jeremy_tammik
Alumni
Alumni
Accepted solution

Yes. That can easily be achieved by attaching your specific add-in data to each element. There are two ways to attach data to elements: old-fashioned user-visible shared parameters, and more modern extensible storage, accessible only via API. For your use, I would recommend the latter. It also supports storage of ElementId data. More info:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.23

  

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