Rename stored User Text Keys

Hi,

I need to rename stored User Text Keys without information loss? Existing keys are all HIDDEN. Any way to do that?

Thank you.

Hi @yigit,

You’ll need to add a new key/value pair and then remove the old one.

– Dale

Hi Dale,

thank you. will it cause to loose all data stored? I have more than 100 blocks with information stored in this hidden user text keys.

@Trav :backhand_index_pointing_up:t2:

As @dale mentioned there is no “Rename”

You will have to create new UserStrings with your new key and value, then delete the old keys.

https://developer.rhino3d.com/api/rhinocommon/rhino.docobjects.objectattributes/setuserstring

https://developer.rhino3d.com/api/rhinocommon/rhino.docobjects.objectattributes/deleteuserstring