Lock parameters after filling out

Lock parameters after filling out

Anonymous
Not applicable
2,263 Views
10 Replies
Message 1 of 11

Lock parameters after filling out

Anonymous
Not applicable

Hi guys

 

I am looking for way to lock parameters or disable user modification after filling out these parameters, I asked this question before and the answers were to use formulas but for system families didn't work, and I think by API coding I can reach what I want. for example if I have parameter called "zone" after I fill it with "Z5" I want to be able to lock it.

so can anybody help me with that or suggest a solution?.

 

Thank you

0 Likes
Accepted solutions (1)
2,264 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable

It's an old blog but I found this:

 

http://thebuildingcoder.typepad.com/blog/2010/08/setting-a-locked-parameter.html

 

Let me know if it helps.

Message 3 of 11

FAIR59
Advisor
Advisor

You can achieve that, using Shared Parameters,  setting Usermodifiable to zero.

 

*PARAM GUID NAME DATATYPE DATACATEGORY GROUP VISIBLE DESCRIPTION USERMODIFIABLE
PARAM d8790400-e35b-49ce-ad7e-dc6420a912a9 KC_vakmaat_B_breedte LENGTH  19 1  0

0 Likes
Message 4 of 11

Anonymous
Not applicable

Thank you for your suggestion but this it's not working with system families

0 Likes
Message 5 of 11

Anonymous
Not applicable

The problem with this way that I can't fill the parameter after load it to family , right ?. 

0 Likes
Message 6 of 11

FAIR59
Advisor
Advisor

It can work with system families. You have to add the shared parameter as a project parameter to the system-family category

0 Likes
Message 7 of 11

Anonymous
Not applicable

that replay it was to the previous comment :), It could be set for system family but how to fill it, after make it hidden ?

0 Likes
Message 8 of 11

FAIR59
Advisor
Advisor

You would have to use an addin to modify the parameter.

0 Likes
Message 9 of 11

Anonymous
Not applicable

I am not familiar with that, if you can give the add-in name that would be helpful thank you

0 Likes
Message 10 of 11

FAIR59
Advisor
Advisor
Accepted solution

Since this is the Revit API forum, i thought your were writing your own Plugin. I dont know if there are plugins available to modify parameters of system families.

 

Another solution could be the use of a NON visible/ UserModifiable shared parameter. Those parameters are only visible in a schedule.

 

 

0 Likes
Message 11 of 11

Anonymous
Not applicable

You give good idea, that am filling it after make it modifiable through dynamo, so cheers man.

0 Likes