Change SharedParameter to FamilyParameter

Hi all,
long time reader first time poster!

I’m trying to find a way automate the conversion of a bunch of SharedParameters in a bunch of families to equivalent FamilyParameters. I would usually do this manually through the parameter properties of the family. (note i though i should also point out this script to be run while in the family editor, not a project)

After a brief look through the API I think this should be possible…
http://www.revitapidocs.com/2017.1/5eb146f4-968c-332e-b017-b9dd7b27274f.htm

So far I’ve managed to use a python node to get the properties I think i need from all the parameters in the family editor. I can then filter down to the shared parameters with a boolmask but am but i have no idea where to start in translating the syntax mentioned in the APIdocs into another python node (i have extremely limited knowledge of coding). Any help would be appreciated :slight_smile: