<?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: Reg. Extract attributes without opening Drawing file in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456148#M41817</link>
    <description>Are you asking how to extract block attributes without opening drawing file? Or drawing properties? Need clarification.</description>
    <pubDate>Wed, 31 Dec 2014 16:26:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-31T16:26:06Z</dc:date>
    <item>
      <title>Reg. Extract attributes without opening Drawing file</title>
      <link>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5455950#M41816</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to &lt;STRONG&gt;extract the attributes&lt;/STRONG&gt; from the drawing file &lt;STRONG&gt;without opening drawing file&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is possible then which API will be work Automation(ActiveX API) or Customization(.NET API) ?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2014 10:43:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5455950#M41816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-31T10:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. Extract attributes without opening Drawing file</title>
      <link>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456148#M41817</link>
      <description>Are you asking how to extract block attributes without opening drawing file? Or drawing properties? Need clarification.</description>
      <pubDate>Wed, 31 Dec 2014 16:26:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456148#M41817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-31T16:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. Extract attributes without opening Drawing file</title>
      <link>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456152#M41818</link>
      <description>&lt;P&gt;Your question sounds like "Can I read a book without opening it?" You should be more precise about what you mean by "attributes" and "opening". You must open a file in the operating system sense&amp;nbsp;to read data from it, so perhaps you meant "without opening the drawing file&amp;nbsp;in the AutoCAD editor".&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2014 16:29:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456152#M41818</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2014-12-31T16:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. Extract attributes without opening Drawing file</title>
      <link>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456168#M41819</link>
      <description>Or did he meant without showing in the AutoCAD editor.&lt;BR /&gt;Because of the ActiveX hint he probably meant extracting out of process without AutoCAD visible.&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Dec 2014 16:43:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456168#M41819</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2014-12-31T16:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. Extract attributes without opening Drawing file</title>
      <link>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456515#M41820</link>
      <description>&lt;P&gt;I think the request is to batch process a collection of drawings and extract block attributes.&lt;/P&gt;&lt;P&gt;Refer here for code to open drawings:&lt;/P&gt;&lt;P&gt;&lt;A target="_self" href="https://forums.autodesk.com/t5/net/readdwgfile-side-database-correct-useage/td-p/5444657"&gt;http://forums.autodesk.com/t5/net/readdwgfile-side-database-correct-useage/td-p/5444657&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And this may help for returning attributes and other block information:&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// return csv string to write out to file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// specifically block name, attribute value and insert point (x,y,z)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;public&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;static&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; GetBlockInfo(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Database&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; pDb, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Entity&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; pEnt, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; pstrAttTag)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; lstrReturnValue = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Empty;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;using&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Transaction&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; tr = pDb.TransactionManager.StartTransaction())&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; (pEnt.GetType() == &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;typeof&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;BlockReference&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// cast entity to a block reference&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;BlockReference&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; br = pEnt &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;BlockReference&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// if successful, continue&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; (br != &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;null&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;BlockTableRecord&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; btr = tr.GetObject(br.BlockTableRecord, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;OpenMode&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.ForRead, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;BlockTableRecord&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// get block name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; lstrBlockName = btr.Name;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// get attribute&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; lstrAttValue = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Empty;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;Autodesk.AutoCAD.DatabaseServices.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;AttributeCollection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; attcol = br.AttributeCollection;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;foreach&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;ObjectId&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; attId &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;in&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; attcol)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;AttributeReference&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; attRef = tr.GetObject(attId, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;OpenMode&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.ForWrite) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;AttributeReference&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; (pstrAttTag.Equals(attRef.Tag))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;lstrAttValue = attRef.TextString;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// get insert point&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Point3d&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; lpntInsertPoint = br.Position;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// csv version&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; lstrInsertPoint = lpntInsertPoint.X.ToString() + &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;","&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; + lpntInsertPoint.Y.ToString() + &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;","&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; + lpntInsertPoint.Z.ToString();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// assemble return string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;lstrReturnValue = lstrInsertPoint + &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;","&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; + lstrBlockName + &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;","&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; + lstrAttValue;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;tr.Commit();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;return&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; lstrReturnValue;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jan 2015 09:07:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456515#M41820</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2015-01-01T09:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. Extract attributes without opening Drawing file</title>
      <link>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456810#M41821</link>
      <description>We need both.</description>
      <pubDate>Fri, 02 Jan 2015 09:12:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456810#M41821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-02T09:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. Extract attributes without opening Drawing file</title>
      <link>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456811#M41822</link>
      <description>We also want to read drawing file without installing AutoCAD in machine.&lt;BR /&gt;&lt;BR /&gt;Is it possible ?</description>
      <pubDate>Fri, 02 Jan 2015 09:15:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456811#M41822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-02T09:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reg. Extract attributes without opening Drawing file</title>
      <link>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456831#M41823</link>
      <description>&lt;P&gt;If you wish to access a dwg database you will need either AutoCAD installed and licenced, or a licence for RealDWG. Dale&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2015 10:22:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/reg-extract-attributes-without-opening-drawing-file/m-p/5456831#M41823</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2015-01-02T10:22:55Z</dc:date>
    </item>
  </channel>
</rss>

