Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

How do I include parameter values unmodifiable?

13 ANTWORTEN 13
GELÖST
Antworten
Nachricht 1 von 14
iamdohae8KSMJ
752 Aufrufe, 13 Antworten

How do I include parameter values unmodifiable?

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?

 

그림1.jpg

13 ANTWORTEN 13
Nachricht 2 von 14
MetalFingerz
als Antwort auf: iamdohae8KSMJ

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)

Nachricht 3 von 14
iamdohae8KSMJ
als Antwort auf: MetalFingerz

Thank you for your answer : )
But 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.
So I can't modify Type Comments and Model values anywhere.
I also want to make a family like that so that no one else can modify the value.
As you answered, if I use the formula column of the family parameter, the value is not modified in the project file. However, in the family file, the user can modify the value as much as he wants.
Nachricht 4 von 14
RSomppi
als Antwort auf: iamdohae8KSMJ


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

Nachricht 5 von 14
iamdohae8KSMJ
als Antwort auf: RSomppi

Yeah, maybe it's a project parameter, as you say.
But that's not the parameter I made in the project file. It is the default parameter in all project files.
So I wonder how put the value in the project parameter in the family file.
Of course, I can also put values in the project file.
However, the value is set when I load a family file, not enter a value separately in the project file.
Also, I cannot modify the value as shown in the figure.
In my opinion, this is definitely a set of project parameter values in the family file. Don't fix that either.
So I wonder how to make it like this.
Nachricht 6 von 14
MetalFingerz
als Antwort auf: iamdohae8KSMJ

@iamdohae8KSMJ,

 

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.

Nachricht 7 von 14
RSomppi
als Antwort auf: iamdohae8KSMJ

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.

Nachricht 8 von 14
iamdohae8KSMJ
als Antwort auf: MetalFingerz

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. 

Nachricht 9 von 14
RSomppi
als Antwort auf: iamdohae8KSMJ

I think he is off track. Share the family.

Nachricht 10 von 14
iamdohae8KSMJ
als Antwort auf: RSomppi

I should have uploaded the family when I asked the question..
Tomorrow, I will turn on the computer and upload the family file~
It is 9 pm here..
Nachricht 11 von 14
syman2000
als Antwort auf: iamdohae8KSMJ

You have to edit the manufacturer family and expand the hidden list

 

syman2000_0-1698157648242.png

 

Here you add formula to make it unmodifiable

syman2000_1-1698157764594.png

 

Check out my Revit youtube channel - https://www.youtube.com/user/scourdx
Nachricht 12 von 14
ToanDN
als Antwort auf: iamdohae8KSMJ

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.

Nachricht 13 von 14
iamdohae8KSMJ
als Antwort auf: syman2000

Oh my god.
I can't believe I missed such a simple part.
I didn't think it was hidden.
Thank you!!
Nachricht 14 von 14
iamdohae8KSMJ
als Antwort auf: MetalFingerz

All the problems have been solved.
Built-in parameters is also included in the family file by default, but I couldn't find it because I was hidden.
I can't believe you asked such a simple question.
Still, thanks to you, I knew how to make it impossible to modify the shared parameters, which was very helpful.

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report