Create Electrical Wires in View

Hi,

I know this post is not the typical fashion of a starter code and then running into an error and then asking for help troubleshooting, but this is a topic I’ve thought about for a while now and cannot seem to find a solution someone else has troubleshooted. I also am not familiar enough with Python to take inputs, reference them correctly, and create outputs.

I’ve done some prework for creating a family with all shared parameters for scheduling and ease of updating, but the annotation aspect of it is lacking. Essentially, I have an initial script that references the mechanical model, finds all mechanical equipment, and places my electrical connector family at the XYZ of each piece of mechanical equipment, also taking any parameters from the mechanical model that I would like to put into my electrical connector.

Now I’m at the stage where I need to add a homerun (wire) to each connector. RIE has a couple nodes that I think accomplish what I’m trying to do, but I’m not familiar enough with python to go into those nodes and edit the code.

My ideal logic would involve the following snip.

@CadenG18 I’ve used the RIE nodes a long time ago, with no need to know python. The home run means “powering” the electrical fixture, and probably connecting to an electrical panel, then drawing the wire.

Drawing the wire is the main task I’d like to accomplish with Dynamo/python.

I was able to draw wires with moderate success without using python, and only native and package nodes, including RIE package. See video below from a long time ago.

The problem I wasn’t able to solve was that the wires would not look how I would expect if I did it myself manually, as you can see they go outside of the room wall, instead of always with the curve inside the room.