Question:
How can I change the name of an XObject’s instance at runtime?
Solution:
To do so, just edit the instance’s Name property.
Example:
Application.GetObject(“Data.XO_Folder”).Item(2).Name = “NewNameXO_02”
Application.GetObject(“Data”).Save()
Application.GetObject(“Data”).Save()
However, links between the XObject and other objects become invalid after editing the instance’s name.