shape.id
The id property returns the permanent ID number of the specified shape.
All objects except stacks have IDs. You can't change the ID number of an object.