Page 1 of 1

Reading CADText from CADMText

Posted: 18 Jun 2009, 04:12
by JobaDiniz
I saw that in CADImportDemos.CADViewerDemo you guys managed to get each text belonged to a Multitext.
You used a specific static method called "LoadTreeNodes" from CADImportFace class. This method loads the entities of an autocad file into a TreeView Control, and when node is multiline, the sub-nodes are texts. So I figured out that it is possible to accomplish what I want.
Nevertheless, I find nothing about how to do it.
CADMText doesn't have Entities (or something like that) property that returns a collection containing CADText entities.

Ultimately, how do I get the CADTexts from a CADMText?

Re: Reading CADText from CADMText

Posted: 23 Jun 2009, 10:38
by support
Hello!
CADMText has Entities property (inherited from CADInsert). You can use CADMtext.Entities and also CADMText.Block.Entities to get CADText objects from MText.

Alexander