<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reading DXF files using ObjectARX and C++ in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7507419#M7500</link>
    <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;I am gathering information to create a dxf reader in ObjectARX using C++.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;First of all, with a help of ObjectARX you can use your "reader" ONLY if Autocad is installed, and ONLY if Autocad is running and your "reader" is loaded to Autocad.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Actually, your link is enough to do what you want and it is possible to create an DXF parser without ObjectARX. Here is a &lt;A href="https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-235B22E0-A567-4CF6-92D3-38A2306D73F3" target="_blank"&gt;link&lt;/A&gt; to DXF file format&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 10:21:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-01T10:21:13Z</dc:date>
    <item>
      <title>Reading DXF files using ObjectARX and C++</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7505323#M7499</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am gathering information to create a dxf reader in ObjectARX using C++.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More specifically, I would like to read a dxf file and find all the objects.&lt;/P&gt;&lt;P&gt;Then based on the object Id to extract in a txt file the geometric information.&lt;/P&gt;&lt;P&gt;For example, if we have a circle to extract its center point and radius.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Until now the only useful information was in &lt;A href="https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-9B4F6629-8B7D-460B-802B-6D2C25966994" target="_blank"&gt;Autocad 2018 documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I would like to ask you if you can help me to find more code examples for my purpose or any other extra information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 15:55:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7505323#M7499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-31T15:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading DXF files using ObjectARX and C++</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7507419#M7500</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;I am gathering information to create a dxf reader in ObjectARX using C++.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;First of all, with a help of ObjectARX you can use your "reader" ONLY if Autocad is installed, and ONLY if Autocad is running and your "reader" is loaded to Autocad.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Actually, your link is enough to do what you want and it is possible to create an DXF parser without ObjectARX. Here is a &lt;A href="https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-235B22E0-A567-4CF6-92D3-38A2306D73F3" target="_blank"&gt;link&lt;/A&gt; to DXF file format&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 10:21:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7507419#M7500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-01T10:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reading DXF files using ObjectARX and C++</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7507575#M7501</link>
      <description>&lt;P&gt;Thank you Nick for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought to create my own dxf parser but it is a lot of work and I need it more for 3D shapes. That's why I am interesting on testing the RealDWG library and I am investigating if I should buy a license. In order to test it I should do it through ObjectARX if I am right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using RealDWG, I want to create a routine from which I can find all the objects. From the documentation I created this code sample which may not be correct but it is a first idea of what I would like to do,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AcDbDatabase *pDg = new AcDatabase( Adesk::False );&lt;/P&gt;&lt;P&gt;if ( Acad::eOk != pDg -&amp;gt; dxfIn( pathToFile ); // Where path to file is the full path to the dxf file&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; return;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AcBlockTable *pBlkTbl;&lt;/P&gt;&lt;P&gt;pBlkTbl -&amp;gt; getSymbolTable( pBlkTbl, AcDb::kForRead );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AcDbBlockTableRecord *pBlkTblRcd;&lt;/P&gt;&lt;P&gt;pBlkTbl -&amp;gt; getAt( ACDB_MODEL_SPACE, pBlkTbRcd, AcDb::kForRead );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AcDbBlockTableRecordIterator -&amp;gt; *pBlkTblRcdItr;&lt;/P&gt;&lt;P&gt;pBlkTblRcd -&amp;gt; newIterator( pBlkTblRcdItr );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AcDbObjectId *pEntId;&lt;/P&gt;&lt;P&gt;for ( pBlkTblRcdItr -&amp;gt; start(); pBlkTblRcdItr -&amp;gt; done(); pBlkTblRcdItr -&amp;gt; step() )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; pBlockTbRcdItr -&amp;gt; getEntityId( pEntId );&lt;/P&gt;&lt;P&gt;&amp;nbsp; exportGeoProps( pEntId ); // Function where I will extract the geometric properties of the entity&lt;/P&gt;&lt;P&gt;&amp;nbsp; pEntId -&amp;gt; close() // I am not sure if I have to close the object id&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pBlkTblRcd -&amp;gt; close();&lt;/P&gt;&lt;P&gt;delete pBlkTblRcdItr;&lt;/P&gt;&lt;P&gt;delete pDb;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 11:28:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7507575#M7501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-01T11:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reading DXF files using ObjectARX and C++</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7511329#M7502</link>
      <description>&lt;P&gt;It makes sense what you are doing.&lt;/P&gt;
&lt;P&gt;You can develop an ARX (or better CRX - see below) application that runs under AutoCAD and reuse the code for an RealDWG project.&lt;/P&gt;
&lt;P&gt;Keep in mind that RealDWG has certain limitations (no UI, no command calls, no graphic system). But extracting geometry is possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use a EXE based on RealDWG it won't be able to load ARX modules - but it can load CRX modules. AutoCAD can load them as well.&lt;/P&gt;
&lt;P&gt;You can create a CRX app with the ObjectARX Wizard if you use Project type=&lt;U&gt;C&lt;/U&gt;onsole (Console Application).&lt;/P&gt;
&lt;P&gt;You can also test your CRX app with the AutoCAD core console (accoreconsole.exe) which is located in the AutoCAD directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you install ObjectARX there is a &amp;lt;ARXDIR&amp;gt;\samples&amp;nbsp; subdirectory with a lot of samples.&lt;/P&gt;
&lt;P&gt;For geometry extraction from 3DSOLIDs you will need &amp;lt;ARXDIR&amp;gt;\utils\brep (Boundary REPresentation library) which has samples as well.&lt;/P&gt;
&lt;P&gt;I highly recomment to build the &amp;lt;ARXDIR&amp;gt;\samples\database\ARXDBG project. This builds the ArxDbg.arx app that implements commands like&lt;/P&gt;
&lt;P&gt;SNOOPDB, SNOOPENTS, REACTORS which are helpful to understand the DWG database.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 13:09:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7511329#M7502</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2017-11-02T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reading DXF files using ObjectARX and C++</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7511980#M7503</link>
      <description>RealDWG apps will not load CRX modules.  They will load dbx modules.</description>
      <pubDate>Thu, 02 Nov 2017 15:31:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7511980#M7503</guid>
      <dc:creator>artc2</dc:creator>
      <dc:date>2017-11-02T15:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reading DXF files using ObjectARX and C++</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7512145#M7504</link>
      <description>&lt;P&gt;artc2 is right. RealDWG won't load CRX. &lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.autodesk.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/P&gt;
&lt;P&gt;Anyway: You can implement the geometry extraction functions in a DBX as well.&lt;/P&gt;
&lt;P&gt;But you will need a CRX or ARX to implement a command that allows to test the function with AutoCAD or the core console.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of using RealDWG you could also use Autdesk's cloud based solution &lt;A title="Autodesk Forge" href="https://forge.autodesk.com/" target="_blank"&gt;Forge&lt;/A&gt; to create a web service.&lt;/P&gt;
&lt;P&gt;CRX modules that run on the core console can be uploaded to the Forge server. Your users won't even need a RealDWG installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:04:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7512145#M7504</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2017-11-02T16:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading DXF files using ObjectARX and C++</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7514205#M7505</link>
      <description>&lt;P&gt;Thank you for your replies!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will investigate what suits me better and I will let you know!&lt;/P&gt;&lt;P&gt;This is new information for me so it will take some time.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 08:06:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/reading-dxf-files-using-objectarx-and-c/m-p/7514205#M7505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T08:06:17Z</dc:date>
    </item>
  </channel>
</rss>

