Create Project Parameter from Shared Parameter

#4

Hi @erfajo - I looked briefly at the implementation:

I think that the node naming of the node is not aligned with the revit API/UI and instead was intended to be simpler to understand for new users - but I agree it seems to only add confusion since internally this node creates shared parameters using a shared parameter file.

I think in this case the group is used just as a way of avoiding collisions between parameters in the shared parameter file with the same name.

I defer to the community or Revit teams usually on Revit API functionality though. If you think we should get rid of this input, we can obsolete this node and change it in 3.0.

0 Likes

#5

I actually think, if you feed the node with a group, then you will get an error. However, this would be going into depth with coding, and as you write, it should be a Dynamo DS Github issue.

0 Likes

#6

actually @mdhutchinson looking back at your image - I think the error stems from the broken dropdown node. That second output is probably returning null.

I think the bug here is that the dropdown node is not updated to work with dynamo 2.x or something else is loading json.net.

Is that an OOTB node? (Parameter Groups)

0 Likes

#7

@Michael_Kirschner2
I also saw that problem, but since I could replicate it myself I thought something is going on here…
I think @mdhutchinson has a Dynamo 2.0 installation, not 2.01 or 2.02

Furthermore does the title indicate that it should be “create shared parameter” that should be used, not “create project parameter” :slight_smile:

0 Likes

#8

This is the version I am on currently.

FYI: I needed a Project Parameter that comes from the Shared Parameter file, as I need to be able to Schedule as well as Tag the element. As I understand it this is the only Parameter Type that can be Scheduled as well as be able to be used in a Tag. Isn’t this correct?

0 Likes

#9

source: http://paulaubin.com/blog/revit-parameters/

0 Likes

Create project parameter for sheets bug
#11

In our company we share the shared parameters (protocol) as a file with our project partners such as construction and the MEP guys aswell. Consistancy is key in some projects.
This allows us to create filters that work for all, and in all models, for instance.
It’s part of our collaboration strategy and it is working very well.

In addition:
If you could make me a node that would give me the value of a parameter by parameterGUID it would make me very happy.

0 Likes

#13

@Marcel_Rijsmus

check this…

1 Like

#14

Maybe i didn’t explain very well.
We have cases where we end up with double, triple or many Shared Project parameters with the same name.
Only one of those is the original shared parameter from the shared parameter file with its GUID.
Imagine we have a Dynamo workflow where we use SetParameterByName and i use that name of the multiple parameter.
Where does the data go?
You see?

People tend to copy from linked files bringing in the parameters aswell, and people tend to create parameters that are already in the project evironment when creating families (you can only know when you were aware of that). We have Reviteers with little experience and full blown masters.

another scenario:
Lets say we have a shared project parameter set to some category as a type parameter. Now make a family with that same shared parameter set as instance and load the family in the project.

next scenario:
Lets say we recreate the parameters with that same name as family parameter (so not the shared one) when editing a family and load it.
What happens?
Maybe i missed it in your nodes but can you make something that solves this?

0 Likes

#15

…meaning essentially, GUID from the parameters inside the project, and then you can compare those with the guids in the “master” file… which could be one of the two new query node I have build :slight_smile:

So the node missing is getting the project parameters guids!?

The remaning is filtering (OOTB node) and deleting (one of my parameter nodes) what should not be present in the project.

0 Likes

#16

Yeah, sort of…
A workflow where i can round up all data values set to the faulty parameters and set it to the correct one, concat if nessesary (there might be two), then delete the parameters.

I can understand that you cannot program around stupidity :slight_smile:

1 Like

#18

So, where does this leave me?

as # erfajo pointed out, this can be done manually from inside of Revit by the user. And, I’ll admit, it is easy to do. I was hoping to automate as much as possible for this overall Dynamo solution - to gain buy-in from the users.

So, I am needing parameters associated to the Room objects… the only way I know of doing this is through a Project Parameter… and since you cannot use it in both schedules and a tag, this is the reason it needs to be a Shared Parameter.

See image below:

0 Likes

#19

In the project parameters dialog you can choose a shared parameter when you click add, is this what you mean?

0 Likes

#20

Sorry, that last post wasn’t clear enough. However, this is why I titled original post. “Create Project Parameter from a Shared Parameter”… the answer to your question is definitely yes.

I need Parameter that can be both Scheduled as well as shown in a tag.

I am green with revit, I’ll admit. Isn’t this the only way to get that?

0 Likes

#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

1 Like

#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.

0 Likes

#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?

0 Likes

#25

YES! This is what I mean.

0 Likes

#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

0 Likes

#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.

0 Likes