Unable to Access "System Type" Parameter for Pipes in Revit Using Dynamo

Hi everyone,

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?

@gregor.gojkosek37AZU I think “System Type” is at instance level.

Hello @gregor.gojkosek37AZU and welcome to the forum…system type is a instanceparameter and you should could get and set…but not if undefined

Dear both,

Thank you for your answers.

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?

Looking forward to your clarification.

Yeah i just mean as here, then you cant set thesystem type…and if try get the parameter it will gve a string “undefined” and not a element.type

Revit_TexLeXAiaa

but if you have undefined just filter them out or set a type with connecct a pipe with systemtype, as we have to do manuel in revit as well…if that the case you can take a look here…Apply MEP System to a "Undefined" System Type Network - #2 by sovitek

Hello,

I’ve made sure all pipes are having System Type assigned. But after running script is still makes no usable results.

How come System Type parameter is not shown here at all?

its becourse system type is an instance parameter and not type

1 Like

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.

I tried restarting PC.

1 Like

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

1 Like

Thank you.

Unfortunately that still makes some weird results:

Why is it also writting “Povratek” to the System Types that do not contain “POVRATEK”?

arhh ok guess your parameter name should be System type and then feed in a system type in value from element classes

Here is bigger picture

have you tried as here…as i still guess its system type you will set

Revit_TEKumG5mbU

Thank you very much for your efforts!

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

1 Like