Accessing entities in SVG files?

Discuss and ask questions about CAD DLL (CAD Image DLL, CAD Importer DLL).

Moderators: SDS, support, admin

Post Reply
chris_de
Posts: 1
Joined: 15 Feb 2007, 18:43

Accessing entities in SVG files?

Post by chris_de » 15 Feb 2007, 18:48

Hi all,

I'm currently evaluating cadimporter/cadimage to use it in my delphi application: I need to access all SVG entities BY NAME (!) and I must find a way to select single entities by mouse. Any ideas ?

Greetings from germany..

Chris

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

Post by support » 20 Feb 2007, 18:51

Hello Chris!

Thank you for the question.
<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">I need to access all SVG entities BY NAME (!) <hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
<b>CADImage.DLL</b> does not give access to entities. <b>CADImporter.DLL</b> (available at: http://www.cadsofttools.com/download/cadimporterdll.zip) serves for this purpose:

<i>The <b>DXFEnum</b> function calls specified callback function for each entity in DXF file, such as the CAD file could be a linear metafile. All data values for entities in blocks are converted to real values.

DXFDATA.Tag - specifies the type of CAD entity.
DXFDATA.Text - points to null-terminated string specifying the text value for text entities (TEXT, MTEXT or ATTDEF).</i>

Please find respective example in the Delphi demo application in the ..\cadimporterdll\DemoDelphi\.. folder of the package.

<blockquote id="quote"><font size="2" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">and I must find a way to select single entities by mouse<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
This functionality is implemented neither in <b>CADImage.DLL</b> no in <b>CADImporter.DLL</b> and we have no such plans for the moment.

FYI: <b>CADImage.DLL</b> has GetNearestEntity function which returns a nearest point to the mouse cursor. Please find respective example in the Delphi demo application (in the ..\cadimage\DemoDelphi\.. folder of the http://www.cadsofttools.com/download/cadimage.zip package).

Sergey.


Please post questions to the forum or write to support@cadsofttools.com

Post Reply