<?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: Export Extended Data to Excel in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816978#M189672</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Would this work? Using the&lt;STRONG&gt; burst&lt;/STRONG&gt; command, then use the scripts.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun LM:writecsv ( lst csv / des sep )
(if (setq des (open csv "w"))
(progn
(setq sep (cond ((vl-registry-read "HKEY_CURRENT_USER\\Control Panel\\International" "sList")) (",")))
(foreach row lst (write-line (LM:lst-&amp;gt;csv row sep) des))
(close des)
t
)
)
)
(defun LM:lst-&amp;gt;csv ( lst sep )
(if (cdr lst)
(strcat (LM:csv-addquotes (car lst) sep) sep (LM:lst-&amp;gt;csv (cdr lst) sep))
(LM:csv-addquotes (car lst) sep)
)
)

(defun LM:csv-addquotes ( str sep / pos )
(cond
( (wcmatch str (strcat "*[`" sep "\"]*"))
(setq pos 0)
(while (setq pos (vl-string-position 34 str pos))
(setq str (vl-string-subst "\"\"" "\"" str pos)
pos (+ pos 2)
)
)
(strcat "\"" str "\"")
)
( str )
)
)

(defun C:ttt(/ lst ss i el x fn)
(setq lst (list) ss (ssget (list (cons 0 "TEXT"))) )
(repeat (setq i (sslength ss))
(setq x (ssname ss (setq i (1- i))))
(setq el (entget x))
(if (= (cdr (assoc 0 el)) "TEXT")
(setq lst (append lst (list (list (cdr (assoc 1 el))))))
)
)
(setq fn (vl-filename-mktemp nil nil ".csv"))
(if (and lst (LM:WriteCSV (reverse lst) fn))
(startapp "explorer" fn)
)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/e2cf2280-63d6-4e06-ac36-fdbdaad7a6a6" width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-mce-fragment="1"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unfortunately it won't work in this situation.&amp;nbsp; I have took a screenshot of the data I am trying to extract:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Extended Data.PNG" style="width: 424px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/469128iC42D866D76A8DB67/image-size/large?v=v2&amp;amp;px=999" role="button" title="Extended Data.PNG" alt="Extended Data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 18:18:12 GMT</pubDate>
    <dc:creator>wilsonm2000</dc:creator>
    <dc:date>2018-02-28T18:18:12Z</dc:date>
    <item>
      <title>Export Extended Data to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816832#M189668</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We have drawings with blocks that have custom Extended data attributes.&amp;nbsp; Is there a way to export the data within these attributes to Excel file?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 17:40:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816832#M189668</guid>
      <dc:creator>wilsonm2000</dc:creator>
      <dc:date>2018-02-28T17:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Export Extended Data to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816922#M189669</link>
      <description>&lt;P&gt;check DATEXTRACTION command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 18:01:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816922#M189669</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-02-28T18:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Export Extended Data to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816930#M189670</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Would this work? Using the&lt;STRONG&gt; burst&lt;/STRONG&gt; command, then use the scripts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun LM:writecsv ( lst csv / des sep )
(if (setq des (open csv "w"))
(progn
(setq sep (cond ((vl-registry-read "HKEY_CURRENT_USER\\Control Panel\\International" "sList")) (",")))
(foreach row lst (write-line (LM:lst-&amp;gt;csv row sep) des))
(close des)
t
)
)
)
(defun LM:lst-&amp;gt;csv ( lst sep )
(if (cdr lst)
(strcat (LM:csv-addquotes (car lst) sep) sep (LM:lst-&amp;gt;csv (cdr lst) sep))
(LM:csv-addquotes (car lst) sep)
)
)

(defun LM:csv-addquotes ( str sep / pos )
(cond
( (wcmatch str (strcat "*[`" sep "\"]*"))
(setq pos 0)
(while (setq pos (vl-string-position 34 str pos))
(setq str (vl-string-subst "\"\"" "\"" str pos)
pos (+ pos 2)
)
)
(strcat "\"" str "\"")
)
( str )
)
)

(defun C:ttt(/ lst ss i el x fn)
(setq lst (list) ss (ssget (list (cons 0 "TEXT"))) )
(repeat (setq i (sslength ss))
(setq x (ssname ss (setq i (1- i))))
(setq el (entget x))
(if (= (cdr (assoc 0 el)) "TEXT")
(setq lst (append lst (list (list (cdr (assoc 1 el))))))
)
)
(setq fn (vl-filename-mktemp nil nil ".csv"))
(if (and lst (LM:WriteCSV (reverse lst) fn))
(startapp "explorer" fn)
)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/e2cf2280-63d6-4e06-ac36-fdbdaad7a6a6" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 18:02:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816930#M189670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T18:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export Extended Data to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816963#M189671</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;check DATEXTRACTION command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That was the first thing I tried, it doesn't pick up the Extended Data &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 18:12:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816963#M189671</guid>
      <dc:creator>wilsonm2000</dc:creator>
      <dc:date>2018-02-28T18:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export Extended Data to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816978#M189672</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Would this work? Using the&lt;STRONG&gt; burst&lt;/STRONG&gt; command, then use the scripts.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun LM:writecsv ( lst csv / des sep )
(if (setq des (open csv "w"))
(progn
(setq sep (cond ((vl-registry-read "HKEY_CURRENT_USER\\Control Panel\\International" "sList")) (",")))
(foreach row lst (write-line (LM:lst-&amp;gt;csv row sep) des))
(close des)
t
)
)
)
(defun LM:lst-&amp;gt;csv ( lst sep )
(if (cdr lst)
(strcat (LM:csv-addquotes (car lst) sep) sep (LM:lst-&amp;gt;csv (cdr lst) sep))
(LM:csv-addquotes (car lst) sep)
)
)

(defun LM:csv-addquotes ( str sep / pos )
(cond
( (wcmatch str (strcat "*[`" sep "\"]*"))
(setq pos 0)
(while (setq pos (vl-string-position 34 str pos))
(setq str (vl-string-subst "\"\"" "\"" str pos)
pos (+ pos 2)
)
)
(strcat "\"" str "\"")
)
( str )
)
)

(defun C:ttt(/ lst ss i el x fn)
(setq lst (list) ss (ssget (list (cons 0 "TEXT"))) )
(repeat (setq i (sslength ss))
(setq x (ssname ss (setq i (1- i))))
(setq el (entget x))
(if (= (cdr (assoc 0 el)) "TEXT")
(setq lst (append lst (list (list (cdr (assoc 1 el))))))
)
)
(setq fn (vl-filename-mktemp nil nil ".csv"))
(if (and lst (LM:WriteCSV (reverse lst) fn))
(startapp "explorer" fn)
)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="iframe-container"&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/e2cf2280-63d6-4e06-ac36-fdbdaad7a6a6" width="640" height="590" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen" data-mce-fragment="1"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unfortunately it won't work in this situation.&amp;nbsp; I have took a screenshot of the data I am trying to extract:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Extended Data.PNG" style="width: 424px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/469128iC42D866D76A8DB67/image-size/large?v=v2&amp;amp;px=999" role="button" title="Extended Data.PNG" alt="Extended Data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 18:18:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816978#M189672</guid>
      <dc:creator>wilsonm2000</dc:creator>
      <dc:date>2018-02-28T18:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export Extended Data to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816993#M189673</link>
      <description>&lt;P&gt;you are&amp;nbsp;mixing phrases&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) there is block attributes&lt;/P&gt;
&lt;P&gt;2) there is extended data (XDATA)&lt;/P&gt;
&lt;P&gt;3) there is dictinary extended data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;anyhow to extract option 2, 3 you need an application&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 18:21:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7816993#M189673</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-02-28T18:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export Extended Data to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7817003#M189674</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;you are&amp;nbsp;mixing phrases&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) there is block attributes&lt;/P&gt;
&lt;P&gt;2) there is extended data (XDATA)&lt;/P&gt;
&lt;P&gt;3) there is dictinary extended data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;anyhow to extract option 2, 3 you need an application&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You have an Extended Data tab in&amp;nbsp;properties, My block has custom fields in this tab, that's the data I am trying to extract, see my screenshot&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 18:25:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7817003#M189674</guid>
      <dc:creator>wilsonm2000</dc:creator>
      <dc:date>2018-02-28T18:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export Extended Data to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7817042#M189675</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;The Extended Data is available through vertical products built on AutoCAD like AutoCAD Architecture and AutoCAD MEP.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;maybe you need to move this to:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-architecture-forum/bd-p/248" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-architecture-forum/bd-p/248&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-civil-3d-forum/bd-p/66" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-civil-3d-forum/bd-p/66&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-map-3d-forum/bd-p/85" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-map-3d-forum/bd-p/85&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 18:39:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/7817042#M189675</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2018-02-28T18:39:19Z</dc:date>
    </item>
    <item>
      <title>Betreff: Export Extended Data to Excel</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/11125962#M189676</link>
      <description>&lt;P&gt;Did you find a solution to the Problem?&lt;BR /&gt;I´m still searching&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 06:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/export-extended-data-to-excel/m-p/11125962#M189676</guid>
      <dc:creator>ismar.salkicevicLFF93</dc:creator>
      <dc:date>2022-04-25T06:24:02Z</dc:date>
    </item>
  </channel>
</rss>

