Page 1 of 1

Find Text in DWG file

Posted: 27 May 2015, 06:27
by Andrey
Hello!

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

Re: Find Text in DWG file

Posted: 27 May 2015, 21:24
by support
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