Rhino Object Attributes

When i assign object attributes:

import Rhino
result, obj_ref = Rhino.Input.RhinoGet.GetOneObject("Select object", False, Rhino.DocObjects.ObjectType.AnyObject)
obj_ref.Object().Attributes.SetUserString("my_key1", "0"); #obj_ref.Object().Attributes or obj_ref.Object().Geometry
obj_ref.Object().Attributes.SetUserString("my_key2", "1");

next time I select an object of rhino how can I iterate through all keys and values?
In which property they are stored?

ObjectAttributes.SetUserString method (rhino3d.com)

Hi Petras

I think these are the other methods to use user strings in attributes:

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

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

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

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

HTH