Dimensioning Wires Through Dynamo

I have an electric instalation i want do dimension its wires…
I have a table of cross sections values for each of the following parameters:
Enclosure (PVC or EPR/XLPE);
Method of Instalation (A1, A2, B1, B2, C, D)
Number of Loaded Wires (2 or 3)
Charge in the wire

I translated the values of these tables to dynamo language… i got over 500 lines of codes like this:

E == “PVC” && N == 2 && M == “A1”&& C <=14.5 ?
1.5:

But it didn’t work (seems like lacing longest is not set and i don’t know how to do that) And even if it works… 500 lines of coding is not something efficient…

Can Somebody Please help me?

1 Like

Hi Ramon,

Sorry this response is not to give you answers but perhaps to ask if you can just show a snap shot of your code. Right now I’m also trying to figure out how I can extract the length values of the wires for take off, but unfortunately its not working for me as well.

Thanks and regards…

1 Like

I couldn’t find a way to extract the length of the wires… I’m doing it through a rather old fashioned way… i created a new conduit type with conduits of smaller diameters and i’m passing it through the conduits (wich really represents the conduits, not the conduits that represent the wires)

For the look up table i did it like this
Ask the Panel what is the type of isolation of the wire (PVC =1; EPR/XLPE = 2)
Ask the Panel what is the The reference method of instalation (A1 = 1; A2 = 2; B1 = 3; B2=4; C = 5; D = 6)
Ask the Panel the name of Loaded conductors ( 2 = 2; 3 = 3)
So, for example 1.32 =
Insulation of the wire = PVC
Reference Method of instalation = B1
Number of loaded conductors = 2

for each “Number” i have a look up table wich will be something like:

def class132(l:var[]…[])
{
return=l<=17.5?1.5:(l<=24?2.5:(l<=32?4:(l<=41?6:(l<=57?10:(l<=76?
16:(l<=101?25:(l<=125?35:(l<=151?50:“Mudar Isolamento”))))))));
};

class132(l):
cv==1.42?
"-";