preventing from duplication or intersection of instances on a point

preventing from duplication or intersection of instances on a point

Ali.sadeghi.h1994
Enthusiast Enthusiast
369 Views
2 Replies
Message 1 of 3

preventing from duplication or intersection of instances on a point

Ali.sadeghi.h1994
Enthusiast
Enthusiast

Hi everyone, I wrote a code to place new desired instances on specific points with NewFamilyInstance() method. How should I prevent adding instance on the points that there is same or other types of instances on them before (Check if there is an instance on the point or not)? somehow preventing from duplication or intersection of instances on a point.

370 Views
2 Replies
Replies (2)
Message 2 of 3

moturi.magati.george
Autodesk
Autodesk

Hi @Ali.sadeghi.h1994,

 

There was an interesting conversation about the question you raised above in the link shared below.

 

https://forums.autodesk.com/t5/revit-api-forum/check-multiple-instances-same-place/td-p/7443346

  Moturi George,     Developer Advocacy and Support,  ADN Open
Message 3 of 3

Ali.sadeghi.h1994
Enthusiast
Enthusiast
@moturi.magati.george
Thanks for your answer and suggested link. I have checked that but unfortunately the problem is not still solved. One solution is to define lists of all instances and their locations and check their intersection by loops or if statements but I'm looking for a short way to do that and I hope someone find the solution soon.