Get and set All userText once


Is there any way to get and set all user text at once ?

I have some UserTex on a object , when this object is copied I want all the usertext to be copied too.

The ideia:

id = rs.GetObject(“Select object to copy”)
start = rs.GetPoint(“Point to copy from”)
end = rs.GetPoint(“Point to copy to”, start)
translation = end-start
id2 = rs.CopyObject( id, translation )
rs.GetUserText(id, AllUserText )
rs.SetUserText(id2, AllUserText)


Why not just assign the object attributes of the old object to the new object?

Thank you @rgr,

I remenber this but, the rs.MatchObjectAttributes( targets, source ) dont get user text.

thank you