Create Project Parameter from Shared Parameter


#21

it is.
in a tag family you can add the same shared parameter inside a label, but make sure you have a shared parameter file
and as soon as the shared parameter is added to your project parameters
you can schedule aswell
the same values will be shown in schedule and tag alike


#22

Exactly!

Where did I miss communicate?

Why are others on this thread seem to be pointing me in another direction?

It is exactly this process that I want to automate with Dynamo.


#23

@mdhutchinson,

Nobody else than you is talking about project parameter… everyone else is talking about you should add shared parameters. It might be your knowledge about which kind of parameter is what (this is what @Marcel_Rijsmus tried to explain). However this is not the entire truth, since it is a fact that Dynamo doesnt really handle Project parameters as Revit does!

Solution is… add Shared Parameters from your shared parameter file.


#24

I already have the Shared Parameters I need in the file.
So are you saying that there is currently no way to automate adding the Project Parameters I need using Dynamo?


#25

YES! This is what I mean.


#26

I did some searches here on the forum.
I dont know what version of Dynamo/Revit you are working on, but i can see talk about an OOTB node that does this., haven’t tested it myself, and i see a lot of post that speak of one parameter at the time, but still.
It all seems to come down at setting the shared parameter in your project first, no option to browse to the file, but i might be wrong.
It seems to me that @erfajo has a lot of experience with this, maybe he can provide a workflow/dyn
This might be a good start


#27

@Marcel_Rijsmus, thanks for the hint :slight_smile:
a mapping table for IFC is surely something i have to look into :slight_smile:

@mdhutchinson, please… you are on a wrong track, we are all trying to help you, so please test our suggestions.


#28

:grinning: perhaps I didn’t understand the suggestion. And, I get that I am “on the wrong track”

I tested using only (first) the Shared Parameters file I had previously manually added required Parameters to. Without adding the Project Parameters, I created a new Room Tag learing that I could indeed select the Shared Parameters for the labels. When I used the resulting Room Tag the Parameters came in with only Question Marks for the Shared Parameters. I selected the Room looking in Properties Palette for the parameters but they were not listed. I found I had to add the Project Parameters. When I did, the Question Marks in the Tag went away. It was only then that could select the Room and fill in the values in Properties Palette. The Tag updated as I expected.

I think I understood from the discussion thread, particularly from your replies that the OOTB Node is currently not working… :thinking: I couldn’t make sense of several of the suggestions.

Was there a revised node that I overlooked, and if so, how do I load it into my dynamo?

???


#29

No nodes build by anyone, and this goes as well for what can be found at https://thebuildingcoder.typepad.com for Revit plugins can create project parameters as it can be done inside Revit. Why noone in the Revit team has found it applicable to provide us with this option I really cant say.

This is why I mentioned for @Michael_Kirschner2 that the dynamoteam should remove the input option concerning “group”, since it makes no sence from a “ProjectParameter” point of view. This issue is filed at DynamoDS Github.

The remaining part is that all you have been writing indicates that it is not a Project Parameter you ask for but a Shared Parameter you can add to the project. This will inside the project act as a Project Parameter with some benefites.

Since noone besides the Revit team can add real project parameters it really doesn’t matter, since you one way or the other will get these parameters as shared parameters.

So instead of having troubles with trying to add project parameters, add Shared parameters instead.


#30

Hi.
If you recreate the graph extract below and run it then the following should happen;
Parameter.CreateSharedParameter will create a parameter Tested in the group Testing in your shared parameter file if it doesn’t already exist. If it does exist then you shouldn’t see anything change.

Parameter.AddSharedParameter will create a shared parameter in your shared parameter file if it doesn’t exist AND also create a project parameter at the same time, which is what I understand you want to do. This node is not OOTB and is in the Orchid package created by @erfajo.
if you find the graph doesn’t behave accordingly then I recommend closing Dynamo and perhaps the file Revit file you are using and then trying again.
I also recommend freezing the Parameter. node you aren’t testing to fully understand the differences between them when you run them.
Hope that helps and is what you were looking for.

image


#31

hi @Marcel_Rijsmus, I have looked at the “openRFA” site, and I am worried about this site. It seems that they try to organize shared parameter guids to be the same. However, they make one major big mistake… they have not included the team behind the Revit IFC exporters shared parameter guids!

In other words… I will warn against using those parameters!

Use the file IFC Shared Parameters.txt instead! this works together with the IFC exporter!
http://help.autodesk.com/view/RVT/2019/ENU/?guid=GUID-7119A8C3-A0EE-4568-8C35-750410D867C9

The most important parameters are…

PARAM f53d1285-ae3d-4992-a3f1-2e7978be529a IfcExportAs TEXT
PARAM 8296d5c9-f935-41f5-8247-48a26d1c85a4 IFC CAD Layer TEXT
PARAM 99793364-7511-4937-80d1-4a6427f2c720 IfcDescription TEXT
PARAM 765c61bc-7588-4846-bfef-befb28681767 IfcExportType TEXT

#32

bringing in the parameters is what matters here.
we need to create the parameters with the correct GUID
it could be any shared parameter file, and this one is not mine and just an example
i have seen Jeremy’s work following your link, if it cant be done it cant be done
appreciate your efforts tho
and @antevasin’s too which i have not tested but seems promissing

add:
there must be some misunderstanding here somewhere, as i cannot believe that @mdhutchinson and i are missing the point
is Jeremy saying every parameter bought into the project is a shared parameter by definition?
listed as (shared) project parameter or not?


#33

is Jeremy saying every parameter bought into the project is a shared parameter by definition?

New parameters can only be created as shared parameters

Which is what Erik was saying…

That’s from 2008… @Jeremy_Tammik has anything changed? :slight_smile: (My guess would be No!)

Mark

Edit This is 2016… https://forums.autodesk.com/t5/revit-api-forum/key-schedule-add-parameter/m-p/6424101/highlight/false#M17171


#34

My guess is no, too. Happy New Year!


#35

@Marcel_Rijsmus, aha… got it… just an example :slight_smile:

First… Well bringing in the shared parameter file is some of the new nodes I have made. So this is doable now. However, i still need to work on the issue you mentioned.
Next… I have started making a node which takes the most essential IFC parameters from the IFC Shared Parameters.txt to be added automatically. I hope to release this soon :slight_smile:

Lastly… yes @Jeremy_Tammik and I are saying the same… I would wish I was wrong, and I have tried all kind of workarounds, but I gave up and ended as everyone else concluding that for us outside the Revit team, there is only one option to add parameters.

By the way, thanks for your very valuable page @Jeremy_Tammik. I started coding using your page as my source back in 2010-11 (where we had some brief contact)… I am still following your site even I don’t need it that much anymore, but it is still very lovely to follow what you do… also when it is not coding as such you post :slight_smile:


#36

@Marcel_Rijsmus

try to see this node… “AddIfcParameter”


#37

:slight_smile:

thank you for your appreciation!


#38

Hi @Marcel_Rijsmus

I have tried to work on this node where i get the guids of a parameter… is it something like this you are asking for?


Please note, the node is not released yet, but I will do it if this is what you ask for :slight_smile:

As you can see from the image, I found a lot of shared parameters in my test project which is not available as project parameters, but they are present in the project file!?.. deleting them was easy and gave me a more clear file :slight_smile:


#39

Hi Erik

It’s getting really interesting now!
What i miss is the check with shared parameter file to keep only those parameters.
I guess it can be done with OOTB nodes, but it would clarify the process for others too.
Good job!
thnx
Edit:
Do you have nodes which can give me a decisive answer whether the parameter originates from the project or a family?


#40

I have released beta builds for 1.3 and 2.0 series at Github, I have changed the nodes slightly from the previous image (I use the element.name instead of adding this to the node as an outport).

I have tried different things to see if I could figure where the parameter is used, but I have not found a way to get this information unless I collect all elements and test their parameters.

I did test to add a shared parameter in a family, load it and then check this one new parameter I knew was used… but there was no difference for this parameter compared to all the others.

I tried to delete this new parameter from the project, and then it disappeared also in the family. However, if I deleted a shared parameter inside Revit, then it disappeared inside project parameter but was still available if I checked for shared parameters.

I then even tried to purge using my new node there takes everything else… but still did the shared parameters exist. Purging inside Revit did neither remove the parameter.

So there is a need as I see it to start observing all kind of project parameters using these new nodes… since Revit does not handle it!

Ass you write, you can combine these new nodes with other nodes including the OOTB nodes to make a workflow deleting the unwanted “wrong” shared parameters…

Please test the beta build and give me feedback if something needs to be added/changed.