Is there a way to access shared parameters?
Thanks!
Is there a way to access shared parameters?
Thanks!
Access Shared Parameters in what way?
If you mean âRetrieveâ parameter data into Dynamo from families within project that have Shared Parameters, then Yes.
Danny - thanks for reply. Yes, I want to get the Shared Parameters of families from a project.
I could not find any node for that. âGet Family Parameterâ is not retrieving the Shared Parameter.
Please suggest how. Thanks.
adrian, in dynamo is a difference between accessing type parameters and instance parameters.
if you want to access an instance parameter you will go with âElement.GetParameterValueByNameâ where element is the instance, parameterName is the name of the instance parameter.
this is working for any kind of parameter - no matter if sharing or not.
if you want to access a type parameter you have the Get Family Parameter" node. it works after 1st run and you have connected it to a family instance. in the pull down you may select the parameters name.
another method is a custom node âGetTypeParameter.FrmFamilyInstanceâ downloadable from package manager.
there you just have to select a family instance type in the (shared)parameters name and voila you get the value.
should be working for any family.
Â
Peter - thanks for reply.
I know about the difference between instance and type parameters.
Iâm not able to âpullâ the Shared Parameters (both names and values, and I want both when I query an family instance). The 'type" and âinstanceâ are showing up well, I cannot query the shared once.
What Iâm trying to do is the following: have a family with certain Shared Parameters. Then once the family is loaded in Revit, I want to
extract all that data from the Shared Parameters and do math operations with them. In this particular case, Iâve built a parametric downspout family, I want to extract all the data
for materials (area, length, weight, etc. - so I can create a comprehensive bill of materials, including costs associated with transportation). Then I want to link the downspouts with the
roof drainage system. The final product will be an intelligent downspout system that will tell how many and what type (diameter) I need for a specific roof and project location (historical rainfall data will be also used for calculations)
Once the downspouts are placed in Revit the schedule/bill of material will be populated automatically.
So long story short: I want to get the Shared Parameters list, then able to extract their values and then play with those values in formulas.
Part of these things can be done inside Revit, without Dynamo help, but Iâm exploring the limits of Dynamo.
Â
Thanks for your help!
Â
It sounds like we are clear on what you are trying to do. Have you tried developing a Dynamo definition? If so please attach and we can comment to see why it is not working.
Edwin - I just pulled the nodes that are related to parameters, see what the output is when I select the family. None of the nodes return Shared Parameters. What Iâm missing? thanks.
Â
Hi Adrian,
Could you try the following - feed your shared parameterâs name as a string into the âGet family Instance Parameter Valueâ.
I think that the confusion is coming from the fact that youâre still using Dynamo 0.63. Some of the nodes had to be renamed in later versions to make them integrate better with the new Design Script language. For example the âGet family Instance Parameter Valueâ was renamed to âElement.GetParameterValueByNameâ node as you can see below:
Iâd recommend to try it for yourself and upgrade to the latest version.
You could get family type parameters in a similar manner:
Dimitar - thanks for your reply. This is working, however my hurdle was to âqueryâ and âextractâ the names + values of a Shared Parameters automatically using Dynamo.
Yes, when I select an instance in Revit, the Properties windows gets populated with the Shared Parameters names and their values and I can pass the name via a string - but I was trying to figure out an automated
process using Dynamo to query + extract that info, then further feeding that into formulas/calculations. Thanks again for your feedback/comments.
Hi Adrian,
Have you managed to sort your issue?
I did a few tests in Dynamo (0.7.2) I am able to Extract Type/Instance shared parameter data and then feed my own inputted dimension through nodes in Dynamo.
Is the images below something you are after? I highlighted the box in the image because I use metric mm in my project and the transfer from Dynamo to Revit is Feet. If you want to adjust established formulas, I suggest you create a constraint parameter, it is easier to work with just 1 number being fed through from Dynamo than a whole formula back into Revit.
Hi there.
Going deep in that direction, let me ask: Letâs suppose an instance of âFloor: Structuralâ (Revit 2016) of type âGeneric Floor - 400â. The thickness of this structural floor is automatically set by its type (400mm). This property is composed by a layer of materials. On editing Generic Floor - 400mm type, press Edit⌠on Construction/Structure and then youâll see the definition of each layer.
The question is: how to achieve each of those layers within Dynamo?
Â
Â
Parameter.ParamaterByName node worked for me. However, Iâve been trying to check the box Pls lemme know which node has that kind of inputs.
arhhh how about something hereâŚ
It worked⌠Thanks a lot ! but it worked with Bool as the input. 0 or 1 didnât work.
Great ,strange in my sample it works with both methods