Here's what Im trying to accomplish.
I am trying to copy the text (Parameter Name) from the Parameter Group: Constraints that has a yes/no parameter associated with it, and paste the text (Parameter Name) into a designated field in the Parameter Group: Construction.
It seems to be a simple, "if box is checked then copy parameter name to this field,,,([>,< ])"
Just not sure how this should be written.
I would appreciate any help that moves me forward in understanding this.
Please see screenshots. Below...
Hi @ChrisFromNOLA ,
You can use Dynamic Model Updater in Revit API.
Register an updater
UpdaterRegistry.AddTrigger(Updater.GetUpdaterId(),new ElementCategoryFilter(BuiltInCategory.OST_xxx), Element.GetChangeTypeParameter(yourParameter.Id));
This didn't solve the issue but I certainly appreciate your input. I also may not be explaining myself clear enough. Let me try explaining in annotated screenshots. Seems this is the best way to bring someone into my madness lol.
Hi @ChrisFromNOLA ,
You have a Yes/No instance parameter and also you have a family type parameter. In this case, the family type parameter name is "Description"
By choosing Yes(tick mark symbol), you want to copy and set the Yes/No instance parameter definition name to the type parameter("Description").
By choosing No(removing tick symbol), you just want to delete the type parameter value("Description" value).
Is my understanding correct? Could you please confirm whether you are looking for this?
The thing to notice here is, Let's say we have 3 chair elements and all these 3 chair elements come from a particular element type. If you change the element type parameter for a single chair, all the chair's element type parameter values will be changed.
I'm waiting for your response.
Thank you Naveen, Yes and No... By checking yes I would like the field to auto populate... Text only (Not dependent on the family for a yes/no family parameter. By checking No... simply does not copy text field
Hi @ChrisFromNOLA ,
This may not be the exact solution to solve your issue.
But I hope this gives you an idea to handle this issue.
I did a small test using Wall Element.
In the wall element, we have a Yes/No Instance parameter called "Structural".
By choosing Yes/No, I am changing the type parameter(Cost).
This is just a sample code(Please do appropriate modifications to this code.)
If some parameter doesn't change while using IUpdater, please check by trying to change the parameter without using IUpdater.
If you are unable to resolve the issue, then let me know.