Set Parameter value to "read only" after write it

Hi guys, I hope someone can help me?
I want to write the Unique ID in a Parameter and make them “read only” ?

Is that possible?

Thanks
Tim

Yes you can.
If you want all elements in the model (instances), make a shared parameter file with a text parameter in it, name it the way you prefer.
Add this shared parameter as a project parameter (instance) set to all model categories.
Get the Unique id’s of all elements in the model and write it to the newly created parameter.
If you also want to write this to all family types (placed or unplaced) you need to add an extra node or two in the script.
for read only parameters you need to study the contents of a shared parameter file.
If its read only how would you go about writing to it?