I loaded a family file that someone created in the project file, but the values are entered in the default parameters (URL, Type Comments...) rather than the family parameters, and some parameters are not allowed to be modified.
Therefore, I cannot modify the value even when I open the family file because it is not a family parameter.
How can I include URL, Type Comments, Model, Manufacurer values in family files and make them unmodifiable?
Gelöst! Gehe zur Lösung
Gelöst von syman2000. Gehe zur Lösung
Gelöst von MetalFingerz. Gehe zur Lösung
Hi @iamdohae8KSMJ ,
You need to open the family in the Family Editor, open the Family types dialog (in the Create tab of the ribbon) and then use the "Formula" column (which is the third one) to enter the input you need (after the equal sign).
- If it's a number then just enter the number, same for dimensions as well like 1234 or 5 mm
- if it's a text, you need to input the text between quotes like "Lorem ipsum"
- it's a boolean, then you can input a comparison that would be true or false like 1 > 0 (for true) or 1 < 0 (for false)
@iamdohae8KSMJ wrote:
what I want to know is how to put values in the default parameters (URL, Type Comments, Model, Manufacturer...) in the family file.
That parameter doesn't appear in the family file, but it does when I load it into the project file.
If they are not in the family file, they could be project parameters.
Ah I see. The only possible way that I can think of is to have the parameter be not USERMODIFIABLE in the shared parameter file.
In any shared parameter file, a parameter is defined with several characteristics (it's GUID, it's name etc.) and there is a final one that is called USERMODIFIABLE. If the value for that is set to 0 then the parameter becomes locked and cannot be modified in the family editor as well. The parameter is still shared so it appears in schedules.
In order to do so this, you need change that using either a plugin that will allow you to modify the shared parameter file directly or do it using a text editor. If you use the text editor, you would need to make sure that the encoding stays the same so you do not corrupt the file.
Then, once you modified it, you go to your family in the editor, reload the parameter file back and then the parameter will be locked. Beware, if there was no value before you reloaded the file, then it will stay empty so make sure that the value you want tied to the parameter is already set beforehand.
I do not have Revit right now so I do not know if this works for built-in parameters as well but from what you're describing it seems to do so.
I really don't see how those cannot be family paramters. They are present in the family templates. Check the family again or if you are unsure, share the family.
Your method is to set parameter values in the family file and then overwrite the parameters I want to fix with shared parameters. Right?
The shared parameter to be overwritten at this time is the USERMODIFIABLE value set to 0 in the text file.
This way I can achieve what I want. I'll try this way. Thank you~
But maybe the built-in parameter doesn't have a separate file like the shared parameter, so I don't think so.
I wonder how you made that family file.
You have to edit the manufacturer family and expand the hidden list
Here you add formula to make it unmodifiable
They are not editable because the value were entered in the Formula column. Edit the family, cut and paste parameter value from Formula column back to the left column then you will be able to edit them in project.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.