Make ModelText not editable

Make ModelText not editable

isc01
Contributor Contributor
717 Views
4 Replies
Message 1 of 5

Make ModelText not editable

isc01
Contributor
Contributor

Hello,

 

I've created a modelText and added it to the document.

How can I make this text "ReadOnly", not editable for the user, so that it can't be deleted and can't be changed?

I tried to set "Pinned" to true, but that still allows the user to change the text.

 

Thanks for help.

 

 

0 Likes
Accepted solutions (1)
718 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

You could implement a Dynamic Model Updater DMU that reverts any changes the user tries to make to the text:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.31

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 5

stever66
Advisor
Advisor
Accepted solution

Is there a reason you can't put the text in a parameter, and then use a label to display the text in the model?

 

Then you can make the parameter read only.

 

Message 4 of 5

jeremytammik
Autodesk
Autodesk

That's a great idea!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 5

isc01
Contributor
Contributor

Thanks!

0 Likes