Avoid Placing Duplicate Instances of Family

Hi All,

My script places a family instance by points. My question is if I re-run the script I don’t want it to place the family instance again if there is already one there. Is there a way to check if the same family is there before placing the family to prevent duplicates?


Hi @Allan.M,
Yes there is a way.

  • Select all the existing family instances in the view
  • Get location [point] of those instances
  • Find distance between existing points and new points
  • If distance less than a specified tolerance then drop the new point from the list
  • Place family instances at the remaining new points