Default instance parameters when placing families with Dynamo

So here i was, placing families with instance parameters in Revit and changing them with Dynamo.
I suddenly noticed that the default values in a family don’t matter and the last used value is getting used for your instance value if you dont change it…

I had the brilliant idea to track linked element ids in my wall opening family (so i can see if a linked element moved compared to where i placed the opening). The default value for this parameter is 0 in the family, but when placing them with dynamo and changing the values in the same transaction (i assume) alters the default value of the parameter when placing a new instance…

image
These values should both be zero and the yes no param should be set to yes, but because i placed it with dynamo, these are now the default values when placing a new instance

Has anyone ever dealt with this?
I thought i could simply not fill in the host id for example if i didn’t use it. but since it isn’t using the default value set in the family but the last used value i cant do that…

The default value is only updated when it’s modified during the placement process within the Revit UI. If you place an instance, then change the value, then place a new instance, the new instance will still use the default value. Modifying a parameter value with Dynamo comes after the placement and does nothing to the default value.

I think you have an issue somewhere else. We need to see your graph and what you’re doing in order to help you figure out what that is.

1 Like

I realized i pressed Create Similar once in my project, while having a placed instance selected… This also changes the default values… Thank you, Dynamo had nothing to do with this.

Man i wish Revit had an option to not remember instance values… Family instance parameter value is kinda useless if it keeps overwriting when you do create similar…

Yes, Create Similar will also change the default values because it updates the values before placement. That’s kinda the whole point of Create Similar but I can see why you’d want to be able to revert back to the original default values.

However, if you’re using Dynamo for any of this then your default values will be left untouched. So maybe that’s your best bet anyway.

1 Like

Yeah i can understand why create similar adopts the values of the selected instance, but not why the original family type will also adopt these values when placing it from the project browser.

Perhaps one day Revit will revert this behaviour as i seem to recall this wasn’t always like this…

Wonder if it’s possible to use Dynamo to reset the instance values in Revit’s memory some way, but as you said Dynamo places the instance first and alters values later…

1 Like