I’ve done some digging but haven’t found anything yet to convert a family parameter into a specific shared parameter.
Revit Parameter Organizer (http://netspiderstudio.com/help/RPO/index.html) will convert a family parameter into a new shared parameter that can be exported from the family into a shared parameter file but that’s not what I’m after.
I got this far using nodes from #orchid and it almost seems like it works except that the family parameters are still family parameters. The messy part in the middle is there because I couldn’t find a way to pull the parameter group in the family from the parameters. I think it’s possible with builtin nodes but I’d need an element to select first and the RFA is the element so… no I guess.
i think you can use this ReplaceParameter Method to convert your family parameter into existing sharedparameter. The trick is to load your sharedparameter file into the document first and get its external definition. Then using definition name to match your family parameter name and hence using that method. I believe it is doable.
But i think for your application, it is best to write your own python script
I cracked this one a while back, and added custom nodes to Crumple to help with it also.
In this tutorial I use them to replace shared parameters with family parameters in a family, then swap those to shared parameters. It’s the second half you’ll be intrerested in I guess!
So you will need to put your parameters and exdefs into a list if there is only one. My nodes work with a list input only so that it functions as intended at levels I believe.
Compare my sample files to yours then and spot the difference - mine work, something must be different about your family or parameters (maybe being the same name is an issue?).
My best guess is your parameters have differing data types, in which case a swap is not valid I believe.
The script I uploaded before has bulk shared to shared based on an excel list of matches, with some python edits it could be made to do non shared to shared. Hopefully the script I shared is workable into what you need. If you aren’t familiar with Python but want to do these types of workflows, time to learn.
I have nodes in Crumple that do shared > family > shared. Shared > shared is not possible in Revit API so a temporary change to family is necessary before going family > shared.
If you could make the change or tell me what i have to change in the Python to make it work
for Non Shared to Shared that would be much appreciated (again ).
Sort of. I guess i have to rename the Parameters i want to change firs, but that i can do…
Agreed. As i said, it is really on my list. I probably have some time ‘dip my toes’ into this next
few weeks.