Set UserModifiable

melanie.ernst
Participant
Participant

Set UserModifiable

melanie.ernst
Participant
Participant

Hello all!

 

I am creating a plugin for Revit via the Revit API where I am creating parameters. Type as well as instance parameters.

Now I want to set the UserModifiable property of those parameters to false, however, I did not manage to do this.

 

Is it even possible to change this property?  If so, how?

 

Thanks in advance!

Reply
Accepted solutions (1)
440 Views
2 Replies
Replies (2)

jeremy_tammik
Autodesk
Autodesk
Accepted solution

Akaik, this property can only be defined when creating the new parameter binding, via the ExternalDefinitionCreationOptions UserModifiable property:

  

https://www.revitapidocs.com/2023/a4063402-872a-294c-184c-f445c195b91d.htm

   

Search for further information on it in these articles:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open

RvdScheur
Participant
Participant

@jeremy_tammik @melanie.ernst 

 

I'm running into an issue on project parameter level where re-adding a parameter with a different UserModifiable value, doesn't get a correct result in Revit.

 

For anyone looking for a similar issue like mine:
https://forums.autodesk.com/t5/revit-api-forum/bug-familymanager-replaceparameter-usermodifiable-not...

0 Likes