Hi All,
I searched everywhere, I couldn’t find a REVIT API code to add “Can host rebar” parameter to the “Generic Model” family category, so I’ll be gratifull if someone gives me a solution
Thanks.
Hi All,
I searched everywhere, I couldn’t find a REVIT API code to add “Can host rebar” parameter to the “Generic Model” family category, so I’ll be gratifull if someone gives me a solution
Thanks.
I believe that’s a built in parameter. You can’t just “add” built in parameters to elements. If it’s available for Generic Models then it should be in the family editor. EDIT: It looks like it is available for Generic Models and can be added following this other post:
Can you clarify what it is exactly that you’re trying to do?
Yes @Nick_Boyts is correct. It’s already a Generic model category parameter.
Hi @Nick_Boyts
So it’s possible to add this parameter to a generic model using API!! …by reading the link you have put I could understand that Revit lookup can give the path of this parameter, however the code I’m looking for is not given and I dont know how to get it using Revit lookup?..so any help will be apreciated
@staylor In your sample you selected a structural family where host rebar is a built In parameter, and you dont need to set it…but for my case the created generic model family doesn’t have this parameter.
Thanks.
Actually that is incorrect. As shown, it’s a generic model category. Originally I edited a structural framing element family and the parameter was not there. As soon as I changed the category to Generic Model, the parameter showed up. It is a built-in parameter as @Nick_Boyts stated. As shown below, “Can Host Rebar” is a family parameter of a Generic Model. The parameter is not available for Structural Framing.
This forum is not a place for requesting finished code. Most of the time you’ll get suggestions on specific portions of code, a generic process, or resources on how to better understand your problem (and therefore develop a solution). The link clarifies that the property is just a parameter of the family within the FamilyManager. It also links to another article from TheBuildingCoder that walks through how to access the FamilyManager, make changes to a family, and then load back into the model.
If you have a specific question on any of that then you need to clarify what it is that you’re having trouble with and what you’ve attempted so far.