Select wall face from point

Hello @dhilipseshan

Your request is quite complex.

Here are some steps that will get you started:

  • collect the walls of the linked model
  • get the boundingBoxes of these walls (with an offset)
  • check for each instance of Families if it is in the boundingBox
  • if so, find the wall and the closest surface with the DistanceTo () or Face.Project () method (geometry of Faces to extract)
  • define the point on the surface
  • create a reference (in the host model) from the Face in the linked model
  • create the instance following an orientation to be defined

Added to this is the management of transformations if the models are not aligned.

Gentle reminder how to ask help on forum

1 Like