Reading CADText from CADMText

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
JobaDiniz
Posts: 6
Joined: 04 Jun 2009, 17:15

Reading CADText from CADMText

Post by JobaDiniz » 18 Jun 2009, 04:12

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?

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Reading CADText from CADMText

Post by support » 23 Jun 2009, 10:38

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply