Wire length calculator

Hey,

is there a possibility to anyhow measure electrical wire lengths from one object to another rather than measuring them by hand object by object? Yes, it can be done by connecting the electrical objects with panel and then get the path length with Edit path method. But editing the path so that it looks correct takes much longer time than doing it myself with Measure tool.

Hi Tecker,
Have you tried Element.Geometry or any geometry querying node? Please show what you have accomplished already in Dynamo and attach a sample Revit file too.
Cheers!

2 Likes

If the angle of the wire, and thereby in extension the distance of the wire, is always 90 degrees, couldn’t you just simply get the X,Y,Z-location of each object, measure the distance by just doing a simple
| A - B |; operation for each distance and just add that all together?

2 Likes
  1. Vector.ByStartPointEndPoint
  2. Vector.X + Vector.Y
1 Like

Do you mean using XYZ Coordinates addon that is available in autodesk app store? - XYZ Coordinates | Revit | Autodesk App Store

@oliwerkulpa I have not achieved anything in Dynamo, I have no idea where to start
@jacob.small As I am new to Dynamo, just starting to explore, it does not say anything to me yet

@Tecker I’m afraid we are all referring to specific Dynamo nodes :frowning: Having that said you should head (if you haven’t already) to some of the links below, to get you going:
https://primer.dynamobim.org/02_Hello-Dynamo/2-6_the_quick_start_guide.html

Not to mention other fantastic threads on this forum. Once you are comfortable with Dynamo window, you should:

  1. Select element from Revit to Dynamo
  2. Obtain its location
  3. Process location to obtain vectors and then their X and Y as @jacob.small mentioned

You can do it, give it some time. Cheers!

So this is what I would like to achieve:

So that every wire length is separately added to its object. Also, as the wires run over the ceiling (at height 2700 mm usually) - this would be the separate Z coordinate that could be adjusted if needed, right? Also this height must be a height from the floor level, not from the coordinate zero level (1st Floor, 2nd Floor etc). So you say it can be done? Maybe it is possible to automate it so that the wire length attaches directly to object parameter so that I do not need to insert it manually?

I don’t know. Maybe all of this is too much wanted?

That is a lot, but still doable for a single wire as you’ve shown. I’d try some room analysis as well or some node returning closest level below selected element.

Try with vectors, as mentioned previously. Then add height considerations to the working solution.

1 Like

This would calculate the length from top of device to top of device. With an adjustable wire height.

Not the most elegant solution, but just something thrown together.

Basically all I’m doing is creating 3 points and using those to create 4 lines. Then calculating the total length of all the lines. This is taking into account the device is 1’-6" off the ground so the height of the vertical length of the wire is 8’ - 1’-6" = 6’-6".

It also adds the length back to both devices. Which you can change to just one if you prefer.


2 Likes