I would like to place switch on face of each Mechanical Equipment (FCU unit) in my project

Hi guys, thank you for your amazing support in growing this community. I am new to Dynamo and I am struggling to get this script right. Please help me with the following:

I am trying to place switches to my FCU mechanical units by selecting all. Two difficulties I am facing: [script screenshot attached]

  1. The switch is getting placed on the bottom of the FCU with the face upside down. The switch is suppose to get hosted by the FCU.

  2. Later, when I am trying to change the workplane to a new one, it does not allow me to do so. [screenshot attached]

Please help me in getting at least proper placement of switch.

Hi there. Is your switch family is face based?

I think currently you’re using wrong node for placing family instances. Try Familyinstance.ByFace. Then family will get proper host.

Second thing. If you want to control to which face you want to host switch, you’ll have to get element.faces from mech equipment, and then filter out needed face for each element

1 Like

Hello @sam_robert_luis and welcome :wink: yeah sounds you need family.instance.byface here OOTB with reference or try spring node there dont need reference…
Revit_bb74rip5MY

1 Like

Hi @sam_robert_luis im not in dyn in the moment, but here is some exemples

here with nodes…and be sure your family is facebased

Home.dyn (57.9 KB)

1 Like

Hi @sovitek one error I have been seeing, which is preventing me to place the element on vertical surface. Please let me know what is causing this error.

I tried with X or Y axis, but then the host element does not get placed on the vertical surface.

new-error

No not sure could you share your family ? and i will take a look later…little bit busy in the moment…cheers

thanks for your PM but lets continue here instead…as its a open community, where all learn from each other :slight_smile: but try something here

QMktw0HWY0

1 Like

Thank you so much

1 Like