Import TextEntity objects from external 3DM files

Hi!
I’m writing a command that reads an external 3DM file and imports all its objects in the active document.
I just can’t add TextEntity objects read from the external 3DM file: I always get an empty guid as a result.
I’ve read that this can happen because there’s no DimensionStyle in the active document that can be assigned to the new TextEntity object.
If this is right, can you please show me the right way to make i t work?
Or please can you show me the right way to import TextEntity objects from an external doc?
Thanks