Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Filtering elements whose parameter value is restricted for user change

1 REPLY 1
Reply
Message 1 of 2
Anonymous
294 Views, 1 Reply

Filtering elements whose parameter value is restricted for user change

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.

1 REPLY 1
Message 2 of 2
TripleM-Dev.net
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report