<?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: How to programmatically extract the attributes from a CAD file? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4718085#M46240</link>
    <description>you can also take a look in below link which may be useful for you:&lt;BR /&gt;&lt;BR /&gt;&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-dwg-f.html"&gt;http://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-dwg-f.html&lt;/A&gt;</description>
    <pubDate>Fri, 27 Dec 2013 21:46:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-27T21:46:56Z</dc:date>
    <item>
      <title>How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4716557#M46235</link>
      <description>&lt;P&gt;Scenario: We have a bunch of dwg files. The requirement is to extract a specific list of attributes from the layers within CAD to a csv file.&amp;nbsp;&lt;SPAN&gt;We are currently manually opening the dwg using AutoCAD and exporting the attributes. This has been time consuming and we need a faster process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What options do I have to&amp;nbsp;&lt;SPAN&gt;programmtically extract them? Thanks in advance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2013 01:01:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4716557#M46235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-27T01:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4716565#M46236</link>
      <description>&lt;P&gt;You can let program to open files then do the extraction. Code maybe like below:&lt;/P&gt;&lt;PRE&gt;using(Database db = new Database(false, true))
{
    db.ReadDwgFile(YOUR_FILE_NAME, FileShare.ReadWrite, false, null);
    using (Transaction tr = db.TransactionManager.StartTransaction())
    {
        //your extraction code
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;you can put the code in a loop to batch your files. If you use command to start the routine, be sure to mark you command attribute with CommandFlags.Session,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2013 01:35:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4716565#M46236</guid>
      <dc:creator>sdphg</dc:creator>
      <dc:date>2013-12-27T01:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4717983#M46237</link>
      <description>&lt;P&gt;I get the following exception on the line &lt;EM&gt;Transaction tr = db.TransactionManager.StartTransaction();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A first chance exception of type 'System.InvalidProgramException' occurred&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The following thread&amp;nbsp;&lt;A target="_blank" href="https://forums.autodesk.com/t5/NET/RealDWG-2013-InvalidProgramException/td-p/3472574"&gt;http://forums.autodesk.com/t5/NET/RealDWG-2013-InvalidProgramException/td-p/3472574&lt;/A&gt;&amp;nbsp;mentions that I need&amp;nbsp;&lt;SPAN&gt;RealDWG components.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Questions,&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Do I need to buy ReadDWG even if our company has already bought AutoCAD? We have AutoCAD but no ReadDWG licences.&lt;/LI&gt;&lt;LI&gt;Can someone provide more details on what licences are needed to programmatically read dwg files?&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 27 Dec 2013 20:08:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4717983#M46237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-27T20:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4718013#M46238</link>
      <description>A valid AutoCAD license will do -- not AutoCAD LT&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Dec 2013 20:39:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4718013#M46238</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2013-12-27T20:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4718037#M46239</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The task you mention looks like a good candidate for a data extraction API application, you need AutoCAD full o any vertical based on AutoCAD. No need of RealDwg. A good start point here: &lt;A target="_self" href="http://through-the-interface.typepad.com/through_the_interface/2008/04/extracting-data.html"&gt;DX&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaston Nunez&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2013 20:57:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4718037#M46239</guid>
      <dc:creator>hgasty1001</dc:creator>
      <dc:date>2013-12-27T20:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4718085#M46240</link>
      <description>you can also take a look in below link which may be useful for you:&lt;BR /&gt;&lt;BR /&gt;&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-dwg-f.html"&gt;http://through-the-interface.typepad.com/through_the_interface/2007/07/accessing-dwg-f.html&lt;/A&gt;</description>
      <pubDate>Fri, 27 Dec 2013 21:46:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4718085#M46240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-27T21:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4718105#M46241</link>
      <description>&lt;P&gt;With one of the full AutoCAD versions this will get you started&lt;/P&gt;&lt;PRE&gt;using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;


using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.DatabaseServices;


namespace AttExt
{
    public class Class1
    {
        [CommandMethod("Att2Csv")]
        public void AttributesToCsv()
        {
            Document doc=Application.DocumentManager.MdiActiveDocument;
            Editor ed=doc.Editor;


            string dwgPath = @"c:\temp\drawings";
            string csvPathname = @"c:\temp\drawings\AtEx.csv";
            if (File.Exists(csvPathname))
                File.Delete(csvPathname);

            foreach (var dwgPathname in Directory.GetFiles(dwgPath, "*.dwg", SearchOption.AllDirectories))
            {
                ed.WriteMessage("\nProcessing: {0}", dwgPathname);
                AttExt(dwgPathname,csvPathname);


            }

        }

        public void AttExt(string dwgPathname, string csvPathname)
        {
            StringBuilder attOut = new StringBuilder();
            attOut.AppendFormat("{0};", Path.GetFileNameWithoutExtension(dwgPathname));

            using (Database attDb = new Database(false, true))
            {
                attDb.ReadDwgFile(dwgPathname, FileShare.ReadWrite, false, null);

                using (Transaction tr = attDb.TransactionManager.StartTransaction())
                {
                    BlockTable bt = (BlockTable)attDb.BlockTableId.GetObject(OpenMode.ForRead);
                    BlockTableRecord mBtr = (BlockTableRecord)tr.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForRead);
                    foreach (ObjectId msId in mBtr)
                    {
                        if (msId.ObjectClass.DxfName.ToUpper() == "INSERT")
                        {
                            BlockReference blkRef = (BlockReference)tr.GetObject(msId, OpenMode.ForRead);
                            AttributeCollection atts = blkRef.AttributeCollection;
                            if (atts == null)
                                continue;

                            attOut.AppendFormat("{0}:{1};", blkRef.Name, blkRef.Position.ToString());

                            foreach (ObjectId arId in atts)
                            {
                                AttributeReference attRef = (AttributeReference)tr.GetObject(arId, OpenMode.ForRead);
                                attOut.AppendFormat("{0}:{1};", attRef.Tag, attRef.TextString);
                            }
                        }
                    }

                    tr.Commit();
                }
            }
            attOut.AppendLine();
            File.AppendAllText(csvPathname,attOut.ToString());
        }
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2013 22:00:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4718105#M46241</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2013-12-27T22:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4748597#M46242</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I get the following exception &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;"A first chance exception of type 'System.InvalidProgramException' occurred"&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt; on the code shown below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Document doc=Application.DocumentManager.MdiActiveDocument;&lt;/PRE&gt;&lt;P&gt;I have attached the project zip file too. The reference file in the project were added from&amp;nbsp;\\Autodesk\Autodesk_ObjectARX_2014_Win_64_and_32Bit\inc\ folder. And I am using VS Express 2012 as IDE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything that I am missing here. Appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 02:13:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4748597#M46242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-14T02:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4749117#M46243</link>
      <description>&lt;P&gt;Nothing wrong with the syntax, except y&lt;SPAN style="line-height: 15px;"&gt;ou're project compiled into an standalone executable, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;while the code is meant to be used as an (class) extension to AutoCAD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Probably the easiest way for you to get this fixed is:&lt;/P&gt;&lt;P&gt;1. Start a new C#/CLASS LIBRARY project, see fig1;&lt;/P&gt;&lt;P&gt;2. Replace the contents class1.cs with the contents of cadextract.cs;&lt;/P&gt;&lt;P&gt;3. Add the AutoCAD references AcCoreMgd, AcDbMgd and AcMgd from you're regular AutoCAD installation folder (c:\program files...;&lt;/P&gt;&lt;P&gt;4. Set&amp;nbsp;&lt;STRONG&gt;Copy Local&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;of the AutoCAD references to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;False --&lt;/STRONG&gt; see fig2&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;5. Build the project&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;6. Start AutoCAD and use the NETLOAD command to load the ..\(bin|release)\projectname.dll&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;7. Start ATT2CSV (not Main) from within AutoCAD, see fig3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Fig1: C# Class typed project, to create an AutoCAD extension&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&lt;IMG alt="C#Class.png" title="C#Class.png" border="0" align="center" src="https://forums.autodesk.com/t5/image/serverpage/image-id/77935i3ED738A35DB3E990/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Fig2: AutoCAD references: CopyLocal=False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&lt;IMG alt="RefCopyLocal.png" title="RefCopyLocal.png" border="0" align="center" src="https://forums.autodesk.com/t5/image/serverpage/image-id/77933i0A4286F145EC1B00/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Fig3: Run CadLoad AutoCAD extension from within AutoCAD&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Command: ATT2CSV

Processing: c:\temp\tgt\CAD\1502017.dwgLoading AEC Base...
Loading AEC Base Extended...
Loading AEC Core...
Loading AEC Project Base...
Loading AEC Architectural Base...
Loading AEC Schedule...

Processing: c:\temp\tgt\CAD\HolecKlemMask_1.dwg
Processing: c:\temp\tgt\CAD\HolecStroomMask_1.dwg
Processing: c:\temp\tgt\CAD\HolecStroomMask_A3h.dwg&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 08:31:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4749117#M46243</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2014-01-14T08:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4750339#M46244</link>
      <description>&lt;P&gt;Thanks for the details.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 6 mentions that I need to start AutoCAD. How can I process and &amp;nbsp;extract attributes from dwg without having to start AutoCAD at all? What would the be the steps involved? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 18:55:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4750339#M46244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-14T18:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4752373#M46245</link>
      <description>&lt;P&gt;You will always need to run AutoCAD to extract drawing information, unless you purchase RealDWG, which will be used to create a stand-alone EXE application.&amp;nbsp; The usual two alternatives to RealDWG are to use AutoCAD but load the drawing database (not the drawing - faster since no graphics are present), or to use the command console.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:25:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/4752373#M46245</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2014-01-15T15:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/9048901#M46246</link>
      <description>&lt;P&gt;in run our code am getting this error..&lt;/P&gt;&lt;P&gt;System.InvalidProgramException: 'Common Language Runtime detected an invalid program.'&lt;/P&gt;&lt;P&gt;how to solve this error...&lt;/P&gt;&lt;P&gt;i have written the command method in class library and that classlibrary method call in Console Application class inside mainMethod..&lt;/P&gt;&lt;P&gt;then i am getting error "System.InvalidProgramException: 'Common Language Runtime detected an invalid program."&lt;/P&gt;&lt;P&gt;.any one tell me...&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 04:51:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/9048901#M46246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-26T04:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically extract the attributes from a CAD file?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/9048957#M46247</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;in run our code am getting this error..&lt;/P&gt;
&lt;P&gt;System.InvalidProgramException: 'Common Language Runtime detected an invalid program.'&lt;/P&gt;
&lt;P&gt;how to solve this error...&lt;/P&gt;
&lt;P&gt;i have written the command method in class library and that classlibrary method call in Console Application class inside mainMethod..&lt;/P&gt;
&lt;P&gt;then i am getting error "System.InvalidProgramException: 'Common Language Runtime detected an invalid program."&lt;/P&gt;
&lt;P&gt;.any one tell me...&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The AutoCAD .NET API can only work from a running AutoCAD process. IOW, to run the assembly (class library DLL), you have to NETLOAD it in a running instance of AutoCAD.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 05:43:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-programmatically-extract-the-attributes-from-a-cad-file/m-p/9048957#M46247</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-09-26T05:43:50Z</dc:date>
    </item>
  </channel>
</rss>

