User Text is lost when using rs.Command("_Export")


When I explode blocks and export manually the User Text is maintained on the geometry.

But when I use the script below all the User Text is deleted from the geometry contained within the block. Why is this?

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino.DocObjects as rd
import Rhino.Geometry as rg
import Rhino

objs = rs.GetObjects("Select blocks to explode and export",4096)

geometries = []

copies = rs.CopyObjects(objs,None)

for i in copies:
    geo = rs.ExplodeBlockInstance(str(i))

for i in geometries:




Hi Dan,

can you send me one of the objects you are trying to export?


Thanks for the quick reply. See attached.


sample.3dm (901.7 KB)

thanks the sample, I can repeat this, will add this to the bug tracker.
Seems already on the list as RH-49260 User text removed in rhinoscriptsyntax

@lignindes workaround is mentioned in this thread


Thanks for adding a bump on the bug tracker. I’m surprised this is not getting attention, it seems like the rs.ExplodeBlockInstance() method should have had this taken care of from the get go.