Accessing entities in SVG files?
Moderators: SDS, support, admin
Accessing entities in SVG files?
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
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
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
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