I’m working on a script in Dynamo to extract the “System Type” parameter from pipes in Revit. However, I’ve encountered several issues that I can’t seem to resolve.
In the attached screenshot, I’ve tried the following approaches:
Element.Parameters:
I inspected all available parameters for the pipe elements using Element.Parameters.
The “System Type” parameter does not appear in the list.
Element.GetParameterValueByName:
I attempted to use Element.GetParameterValueByName with “System Type” as the parameter name, but the output is empty.
Element.ElementType:
I explored the element type properties of the pipes, but the “System Type” parameter does not seem to be associated with the type either.
All Elements of Category:
I used All Elements of Category to get the pipes, and I confirmed the pipes are valid elements in Revit. However, the “System Type” parameter is still inaccessible in Dynamo.
Additional Context
The “System Type” parameter is visible in the Revit Properties panel under the Mechanical section when I select a pipe (e.g., “OG-PREDTOK”).
It seems this parameter is tied to the MEP system the pipe belongs to, but I haven’t found a way to access it in Dynamo.
Questions
How can I access the “System Type” parameter for pipes in Dynamo?
Is this parameter only accessible through the Revit API via Python or C#? If so, what is the correct approach?
Are there any workarounds to retrieve System Type directly or indirectly for MEP elements like pipes?
Could you please clarify what you mean by “undefined”?
From my understanding, every single piece of pipe in the model should have a System Type defined. Could it be that just one pipe somewhere in the model is missing a System Type, and this is causing issues for the entire model?
Ok… I am making some progress. But now I am stuck with “basic” issue. I am 100% sure this is correct name (also regarding Case sensitive), I have also tried writting to some other parameters and I keep getting same error.
great …try as here and see if it could help, and the value should be a system type element as i think you want…but cant understand that language if it a other parameter you want write to then be sure you spell it right and the parameter is a text parameter
No, I will not be modifiying parameter System Type. Based on the System Type parameter I need to modify some other Text values that costumer is demanding.
something here then ? here i write system type name to an instance parameter (comments) and be sure all these element you feed in actuelly have a system type parameter