Find Text in DWG file

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Andrey
Posts: 12
Joined: 27 May 2015, 06:02

Find Text in DWG file

Post by Andrey » 27 May 2015, 06:27

Hello!

I am using CADViewX Lite v9.
how you can programmatically find text in a document?

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

Re: Find Text in DWG file

Post by support » 27 May 2015, 21:24

Hello,

In general, you will have to iterate through all the items in the entities collection (CADViewX.DXFImage.Entities) and check if the entity ID is equal to TEntityID.eidText to filter TEXT entities, then compare text strings (Text.Text) with the searched one to find the text. Please, specify your programming language to get a sample code.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply