Change undefined duct

Is there any dynamo node or python script to change the undefined duct back to its system?
I tried setparameterbyname with “System Type” but not success.
And I don’t want to manually join the duct with other ducts in order to force change its system type, I want to do it by script.

Hello…MePover had some nodes there probably can help you…

Unfortunately no
But I can finally change it by revitapi, SetSystemType Method