Creating/Extracting Shared Family Parameters

Creating/Extracting Shared Family Parameters

JesseMayes
Enthusiast Enthusiast
6,088 Views
4 Replies
Message 1 of 5

Creating/Extracting Shared Family Parameters

JesseMayes
Enthusiast
Enthusiast

Hi all, new BIM Manager, learning how to use Dynamo and other functions. I'm having an issue. I have a script that can push parameters into new families, but I need to know how to extract shared parameters from old families. In the examples, I have a family that has some 300 parameters that I want to feed in to my Dynamo script. I could use excel or text, but I don't know how to get these parameters into excel or text. We have a Master Shared Parameters text file (shown) but it literally has over 3000 parameters. 

Anyone know how to extract existing parameters into either an excel or text file? Dynamo solutions welcome. Thanks in advance!

0 Likes
Accepted solutions (1)
6,089 Views
4 Replies
Replies (4)
Message 2 of 5

L.Maas
Mentor
Mentor

Not sure what and how you want do things. Do you want to extract the name of the parameters, the parameter values or ...?

If you have the families placed in a project  you can do something like this.

Revit - Dynamo.png

Of course you can do all kinds of filtering. Then you can export the data

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Message 3 of 5

ceyhunyuzuak
Advocate
Advocate

@L.Maas  Do you know when you download a family from internet it comes with some shared parameters in it and you want to have a tag family read and display that shared parameter value, so then you open family file you downloaded, go into "Family Types" and select that shared parameter, press the pencil button and then press "Export" button and Revit writes all properties of that shared parameters into your local shared parameters .txt file so your tag family now be able to see that particular shared parameter and read it? 

as far as I understand @JesseMayes wants to do that with Dynamo voodoo for 300 parameters all at once.  

0 Likes
Message 4 of 5

JesseMayes
Enthusiast
Enthusiast

@L.Maas Thanks so much! This feels like it's getting me on the right track. However, it's returning parameters that I wasn't looking for necessarily. Two attached images. The Dynamo script is giving me these parameters for the family I select (Image 1), but what I really need are all the Edit Type parameters for the family (Image 2). Do you know a node that will pull these?

0 Likes
Message 5 of 5

JesseMayes
Enthusiast
Enthusiast
Accepted solution

After days of research and playing, I managed to get what I needed. Thought I'd post the solution here for anyone else looking to do so.

Fire I needed to download two add-ons: Clockwork v2.3.0 and GeniusLoci v2020.12.22 (took a long time to find the correct version).

Then I wrote the script shown in the images below to extract all the family type data out of the family. The (image 2) exported that data to Excel. I had to use different export-to-excel nodes because, honestly, my list management needs improvement yet. It took a file and a couple Runs, but it managed to export all the Parameter names, GUIDs, Parameters Groups, Types and Formulas from the family type. 

Now I can use this Excel file to import all the family shared parameters I extracted into a different family.

If anyone knows of a simpler means for doing what I did, please let me know! Enjoy!