Hi there,
I was hoping I could get some help. I’m currently trying to develop a dynamo script where I can generate material takeoff quantity. This is what I currently have and I’ve been struggling with the == function and getting it to return results where if the function=exterior it returns a true reading.
any help is appreciated.
Try checking the element type.
Also use of the Element.Parameters node can help you find what your options are.
Thanks for your response Jacob
I’m not seeing the “Function” parameter under the Element.Paramaters node. Would happen to know what my best means for accessing the Function Parameter? Thanks again!
Get the family type and see what parameters it has. 
1 Like
than you Jacob! much appreciated
1 Like
I’m attempting to to use the Type Parameter but it still giving me false reading when I compare it to the string “exterior wall” do you know why this is pulling incorrectly.
the parameters you get are instance parameters, as Jacob already suggested put a element.elementtype parameter after the ‘all elements of category’ node.
1 Like
Hi @estimatingSUN9A maybe something here could help
1 Like
The logical workflow for the first part is not the hardest part of this extraction actually.
If you notice past the filter results, we need to take note that there are 3 types of walls (basic wall, curtain wall and stacked walls). Between the basic and curtain walls, you may not be able to extract the Materials because the material layer comes from the mullions and the curtain panels.
To complete this script, you’ll need to extract (basic walls + stacked walls) and curtain walls separately where the curtain panels and the mullions are extracted from the curtain walls.
*do take note that the Roofs may also contain curtain panels and mullions too!
For stacked walls, because it comes in multiple walls stacked on top of each other, you may encounter some list level issues.
Hope that helps give you some pointers to the situation.
i didnt read all the comments on this but i use Element.Materials+ from “Clockwork” Package.
Worked like a charm in several of my takeoffs