<?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: Load dxf file into standalone executable and then save as an image in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12256551#M7252</link>
    <description>&lt;P&gt;This is part of a larger application to generate packets of parts that need to be engineered which coalesces information into a single file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can launch Autocad, that probably isn't an issue, but I still am not able to find code references to explain how to do the steps of loading the specific file, from my executable, and then create the output (either image or PDF)&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 14:36:31 GMT</pubDate>
    <dc:creator>rwemmerLHAEW</dc:creator>
    <dc:date>2023-09-21T14:36:31Z</dc:date>
    <item>
      <title>Load dxf file into standalone executable and then save as an image</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12256282#M7250</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to ADN and very much trying to learn. I would like to know if it is possible, using "Autodesk.AutoCAD.Interop" and "Autodesk.AutoCAD.Interop.Common" to load a dxf file into a stand alone C# executable (.NET 7). And then, I would like to export that drawing as an image, such as png or jpg. If so, can anyone point me towards docs to load the dxf and then docs to save the drawing as an image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 13:02:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12256282#M7250</guid>
      <dc:creator>rwemmerLHAEW</dc:creator>
      <dc:date>2023-09-21T13:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load dxf file into standalone executable and then save as an image</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12256347#M7251</link>
      <description>&lt;P&gt;The simple answer is "NO". The said libraries "Autodesk.AutoCAD.Interop/.Common" can only be used along with running AutoCAD session. If you want to do what you said with only an EXE app, the interop libraries are useless.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you use your EXE to automate AutoCAD via COM API (e.g. with the 2 interop libraries for early binding, or with late binding), you can control AutoCAD to open the files (be it DXF, or DWG file, no difference here), and plot desired portion of the content as PDF, or JPG... But, since this requires a running AutoCAD, then you might want to ask yourself:&amp;nbsp; why do it from external EXE (e.g. running 2 apps to get the result), rather then simply run AutoCAD only to get things done, with VBA code, or .NET API code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want to run ONLY your app, you could send the file to AutoCAD's Platform Services (formerly Forge services) and get the PDF/JPG back. That is, your app uses a remote, service-based AutoCAD to do the job, and pretend there is no AutoCAD involved to the users.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you only mention using DXF, which means all the data in the file can be freely interpretated/used for whatever purpose, so, yes, you can develop your own geometry data rendering app, but expect to have a team of developers and months, if not years, of work with significant investment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 13:24:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12256347#M7251</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-09-21T13:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Load dxf file into standalone executable and then save as an image</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12256551#M7252</link>
      <description>&lt;P&gt;This is part of a larger application to generate packets of parts that need to be engineered which coalesces information into a single file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can launch Autocad, that probably isn't an issue, but I still am not able to find code references to explain how to do the steps of loading the specific file, from my executable, and then create the output (either image or PDF)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 14:36:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12256551#M7252</guid>
      <dc:creator>rwemmerLHAEW</dc:creator>
      <dc:date>2023-09-21T14:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load dxf file into standalone executable and then save as an image</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12256620#M7253</link>
      <description>&lt;P&gt;Have you ever done COM Automation? It is an technology of 30 years, at least. As I mentioned in previous reply, it is vey likely a not good choice since you need to run 2 apps on the desktop to get simple work done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you did not provide more details of your business case and/or application type/structure, except for "a larger application", it is hard to comment more. But if you, or the users of your app, have AutoCAD installed, it would be better done within AutoCAD with LISP/VBA/.NET Plugin. Or, you can create a .NET plugin and use you app to control AutoCAD core console (to avoid COM automating the desktop AutoCAD). This approach would make it very easy for future moving the image generating process to Autodesk's cloud Platform services with minimum effort while keep your app almost unchanged.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 14:57:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12256620#M7253</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-09-21T14:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load dxf file into standalone executable and then save as an image</title>
      <link>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12257624#M7254</link>
      <description>&lt;P&gt;Id have a look in github i.e.&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/aspose-com-gists/fa9ce3c2849df7748c9043e827afecf1" target="_blank"&gt;https://gist.github.com/aspose-com-gists/fa9ce3c2849df7748c9043e827afecf1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 22:19:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/load-dxf-file-into-standalone-executable-and-then-save-as-an/m-p/12257624#M7254</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2023-09-21T22:19:30Z</dc:date>
    </item>
  </channel>
</rss>

