Filtering elements whose parameter value is restricted for user change

This widget could not be displayed.

Filtering elements whose parameter value is restricted for user change

Anonymous
Not applicable

I am searching for a method to filter out all elements in which users are not allowed to change the value. For example, the curtain panels and mullions have parameter Workset value defined. These can be read and Revit reports them to have User Workset value defined. Meanwhile in the properties window, these parameters are grayed out. The values are modified by Revit when the Curtain Wall's Workset is changed by user.

 

Annotation 2020-03-23 124517.png

 

So I can see Revit is putting restriction based on something. I want to find out what that something is. What is the logic that I can use for searching all of these types of restricted elements so that I don't attempt to change their Worksets using API. Please advise.

0 Likes
Reply
291 Views
1 Reply
Reply (1)

TripleM-Dev.net
Advisor
Advisor

See the Parameter IsReadOnly property, If true the user can't change the value.

 

IsReadOnly Property 

 

For example:

- Instance parameter with the setting Values are aligned per group type and the element is in a Group = ReadOnly

- Type property Assembly Description = ReadOnly (read from the Assembly file depending the Assembly Code value)

 

 

- Michel

0 Likes