I recently started a new dynamo challenge with myself.
In my personal template, I always use the same parametric duct tap to join two elements.
For those duct fittings, I use to put a text to explain if this have straight sides or frames.
I thought I could do it using dynamo.
Here we go!
First, I have to compare offset of both duct fitting and host duct.
Then I whant to collect the heigh of those elements.
Once I have those information, here are the differents options:
(D is for the host duct and P is for the duct fitting offset)
- if D offset = P offset and if D height > P height then write the text “case A”
- if D offset = P offset and if D height = P height then write the text “case B”
- if D top offset = P top offset and if D height > P height then write the text “case C”
- if D bottom offset = P bottom offset and if D height > P height then write the text “case D”
So, let’s start talking about my script.
I managed to cllect the duct fittings in my view and to collect their height and offset prameters.
I also managed (with MEP connector info) to collect the duct my duct fitting is hosted to.
but I can’t go further.
I would like to collect and compare the differents offset/height parameters.
I have differents list and I’m a little bit lost.
Could someone tell me if I’m on the good way or if I have to do it different?