How to add the self-aligning behavior through Grasshopper Rhino Inside components?

How to add the self-aligning behavior by magnetizing the door on a wall ?

What is self-aligning behaviour?

It is the property of a door to magnetize in a direction parallel to a wall. I solved this using an RFT (Generic Wall Based Model) family template file