<?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: Exporting dimensions AND prefix to csv in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407477#M96634</link>
    <description>&lt;P&gt;Yes, that works great thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshot:&lt;/P&gt;&lt;P&gt;&lt;A href="http://prntscr.com/ljbi84" target="_blank"&gt;http://prntscr.com/ljbi84&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be possible to print it to the autocad command line as well / instead?&amp;nbsp;&amp;nbsp; Can't copy/paste out of a alert box!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Nov 2018 21:14:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-16T21:14:31Z</dc:date>
    <item>
      <title>Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8405355#M96625</link>
      <description>&lt;P&gt;Good Evening!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a lisp script that exports dimension values to a csv file.&lt;/P&gt;&lt;P&gt;I have modified it to only export selected dimensions which is exactly what I want.&lt;/P&gt;&lt;P&gt;However;&lt;/P&gt;&lt;P&gt;I would also like to export any prefix the dimension has and include it with the exported dimension:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EG:&amp;nbsp;&amp;nbsp;&amp;nbsp; a dimension of 36" that has a prefix of R should be something like&amp;nbsp;&amp;nbsp; R - 36,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a dimension with no prefix would just be 36&lt;/P&gt;&lt;P&gt;Attached is my current lisp script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;; Save the Dimension's values to a CSV file
; mfuccaro@hotmail.com
; 2008 May
; Enhancements by CAD Studio, 2012
; Modified by WhoolieShop to include prefix's and only work on current selection.
;
(setq _dimexpdelimiter ",") ; set to ";" for CSY/DEU...

(defun C:DimExp ( / s tx fn i d dl m file)

(setq s (ssget  (list '(0 . "DIMENSION")))
	tx nil
	fn (strcat (getvar "dwgprefix") "DimExp.csv"))
(repeat (setq i (sslength s))
 (setq d (ssname s (setq i (1- i)))
	dl (entget d)
	m (cdr (assoc 42 dl)))
 (if (not (member m tx)) (setq tx (cons m tx)))
)
(setq s nil)
(if tx (progn
 (setq file (open fn "a")) ; append
 (write-line "" file)
 (princ (strcat (getvar "dwgname") _dimexpdelimiter) file)
 (foreach x tx
  (princ x file)
  (princ _dimexpdelimiter file)
 )
 (if file (close file))
 (princ (strcat "\n" (itoa (length tx)) " dimensions written to " fn)) 
))
(princ)
)&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 23:31:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8405355#M96625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-15T23:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8405389#M96626</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Good Evening!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a lisp script that exports dimension values to a csv file.&lt;/P&gt;&lt;P&gt;I have modified it to only export selected dimensions which is exactly what I want.&lt;/P&gt;&lt;P&gt;However;&lt;/P&gt;&lt;P&gt;I would also like to export any prefix the dimension has and include it with the exported dimension:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EG:&amp;nbsp;&amp;nbsp;&amp;nbsp; a dimension of 36" that has a prefix of R should be something like&amp;nbsp;&amp;nbsp; R - 36,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a dimension with no prefix would just be 36&lt;/P&gt;&lt;P&gt;Attached is my current lisp script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;; Save the Dimension's values to a CSV file
; mfuccaro@hotmail.com
; 2008 May
; Enhancements by CAD Studio, 2012
; Modified by WhoolieShop to include prefix's and only work on current selection.
;
(setq _dimexpdelimiter ",") ; set to ";" for CSY/DEU...

(defun C:DimExp ( / s tx fn i d dl m file)

(setq s (ssget  (list '(0 . "DIMENSION")))
	tx nil
	fn (strcat (getvar "dwgprefix") "DimExp.csv"))
(repeat (setq i (sslength s))
 (setq d (ssname s (setq i (1- i)))
	dl (entget d)&lt;BR /&gt;        m (cdr (assoc &lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt; dl)))
 (if (not (member m tx)) (setq tx (cons m tx)))
)
(setq s nil)
(if tx (progn
 (setq file (open fn "a")) ; append
 (write-line "" file)
 (princ (strcat (getvar "dwgname") _dimexpdelimiter) file)
 (foreach x tx
  (princ x file)
  (princ _dimexpdelimiter file)
 )
 (if file (close file))
 (princ (strcat "\n" (itoa (length tx)) " dimensions written to " fn)) 
))
(princ)
)&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Try modifying the number above as shown.&amp;nbsp; 42 will give you the actual dimension. 1 will give you what the dimension shows (what was entered by the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.autodesk.com/techpubs/autocad/acad2000/dxf/common_dimension_group_codes_dxf_06.htm" target="_blank"&gt;https://www.autodesk.com/techpubs/autocad/acad2000/dxf/common_dimension_group_codes_dxf_06.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 00:05:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8405389#M96626</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2018-11-16T00:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8405522#M96627</link>
      <description>&lt;P&gt;Hmmmm&lt;/P&gt;&lt;P&gt;okay that narrowed down my selection to two dimensions, which are ones that had overridden text.&lt;/P&gt;&lt;P&gt;The regular dimensions did not get parsed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE cellspacing="0" border="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;LT018005_Jeff_Taylor.dwg&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1/2"&lt;/TD&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;TD&gt;72"&lt;/TD&gt;&lt;TD&gt;SC&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SC "special cuts" are pretty rare in the drawing.&amp;nbsp;&amp;nbsp; I'll poke around a bit more thanks to that site you linked me to and see if i can extract what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***NOTE***&amp;nbsp;&amp;nbsp;&amp;nbsp; changing it to option 3 which is&lt;/P&gt;&lt;TABLE cellspacing="4" cellpadding="2" border="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2" face="verdana,arial"&gt;Dimension style name&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did extract Precut, and PrecutCorner&amp;nbsp; but only two lines, I would need the Style for EACH and dimension listed individually even if there are duplicates....&lt;/P&gt;&lt;P&gt;How would i go about using say the dimension measurement 42 AND option 3 for the dimension style?&amp;nbsp;&amp;nbsp; I could just do 3 separate styles and sort them that way to tell the difference between left and right corners.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*EDIT #2*&lt;/P&gt;&lt;P&gt;Actually I really don't even need this to export to a CSV, if I could select all of a specific dim type, then sum all of their lengths and optionally get a count of the number that would completely solve my problem without having to even fool with exporting them to CSV, thats exactly what im going to end up doing anyway (adding them up to get a total length of material)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 02:33:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8405522#M96627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T02:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8405576#M96628</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hmmmm&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*EDIT #2*&lt;/P&gt;&lt;P&gt;Actually I really don't even need this to export to a CSV, &lt;FONT color="#0000FF"&gt;if I could select all of a specific dim type, then sum all of their lengths&lt;/FONT&gt; and optionally get a count of the number that would completely solve my problem without having to even fool with exporting them to CSV, thats exactly what im going to end up doing anyway (adding them up to get a total length of material)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you elaborate the marked points with an attached example drawing.......&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 03:23:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8405576#M96628</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-11-16T03:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8406240#M96629</link>
      <description>&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;; Save the Dimension's values to a CSV file
; mfuccaro@hotmail.com
; 2008 May
; Enhancements by CAD Studio, 2012
; Modified by WhoolieShop to include prefix's and only work on current selection.
;
(setq _dimexpdelimiter ",") ; set to ";" for CSY/DEU...

(defun C:DimExp ( / s tx fn i d dl m file)
  (vl-load-com)
  (setq s (ssget  (list '(0 . "DIMENSION")))
        tx nil
        fn (strcat (getvar "dwgprefix") "DimExp.csv")
  )
  (repeat (setq i (sslength s))
    (setq d (vlax-ename-&amp;gt;vla-object (ssname s (setq i (1- i)))))
    (if (= (strlen (vlax-get-property d 'textprefix)) 0)
      (setq m (vlax-get-property d 'measurement))
      (setq m (strcat (vlax-get-property d 'textprefix) (rtos (vlax-get-property d 'measurement) (getvar 'lunits) (getvar 'luprec))))
    )  
    (if (not (member m tx)) (setq tx (cons m tx)))
  )
  (setq s nil)
  (if tx 
    (progn
      (setq file (open fn "a")) ; append
      (write-line "" file)
      (princ (strcat (getvar "dwgname") _dimexpdelimiter) file)
      (foreach x tx
        (princ x file)
        (princ _dimexpdelimiter file)
      )
      (if file (close file))
      (princ (strcat "\n" (itoa (length tx)) " dimensions written to " fn)) 
    )
  )
  (princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is easier to accomplish using vlisp. The problem is the measurement is a real, and the dim prefix is a string; and the only option is to convert the measurement to a string since you can't convert a string of letters to a meaningful number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;The SC "special cuts" are pretty rare in the drawing.   I'll poke around a bit more thanks to that site you linked me to and see if i can extract what I need.

 

***NOTE***    changing it to option 3 which is
 	

Dimension style name

 

Did extract Precut, and PrecutCorner  but only two lines, I would need the Style for EACH and dimension listed individually even if there are duplicates....

How would i go about using say the dimension measurement 42 AND option 3 for the dimension style?   I could just do 3 separate styles and sort them that way to tell the difference between left and right corners.

 &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;??!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What exactly are you trying to do?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 11:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8406240#M96629</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2018-11-16T11:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8406489#M96630</link>
      <description>&lt;P&gt;I have walls that are x length. &amp;nbsp;&lt;/P&gt;&lt;P&gt;each wall has a given height, and variable openings in it. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The wall is comprised of rows which are made of log. &amp;nbsp;The logs are variable length but rarely span the entire length of the wall. &amp;nbsp;(15’-6” max) per log. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to manually break up the logs on each row ensuring there are now double breaks (two or more rows that have logs that break in exactly the same place).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I typically manually put in all the log dimensions for each wall, once the wall is broken up into its individual parts including window and door openings I need to figure out the total amount of left corners, right corners, regular logs and special cuts needed for the entire structure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this this last night:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sites.google.com/site/cadkits/home/adddim" target="_blank"&gt;https://sites.google.com/site/cadkits/home/adddim&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which allows me to make a selection and the script/lisp gives me a sum of the selected dimensions for a total. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not have to export the values values to excel, this is just the old way I was doing it having the total on screen is completely acceptable and actually less work than exporting and manually summing the totals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would ne nice is if I could select all and have the dimensions summed based upon what dim style they have. &amp;nbsp;As each component in the drawing has a different dim style. &amp;nbsp;(One for left corners, one for right, one for no corner, and one for special cuts).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the script took the entire selection snd gave me a total distance of selected sims grouped by dim style it would be perfect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 13:36:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8406489#M96630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T13:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8406889#M96631</link>
      <description>OK. You need a lisp to sum dimensions by dimstyle. What are the dimstyles names and which style relates to which type of dimension (only if it's not blindingly obvious).&lt;BR /&gt;Then it's a matter of selecting all the dims, looping through the selection set, finding the dimstyle and dimension and adding it to the current total for that dimstyle. Does that sound correct?</description>
      <pubDate>Fri, 16 Nov 2018 16:26:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8406889#M96631</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2018-11-16T16:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407039#M96632</link>
      <description>&lt;P&gt;Yes that’s very close, if the dim style names are needed they would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PrecutRC&lt;/P&gt;&lt;P&gt;PrecutLC&lt;/P&gt;&lt;P&gt;Precut&lt;/P&gt;&lt;P&gt;PrecutSC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or it could just use any dim style name and group them; as long as it outputs what style as it is totalling that would be totally fine. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if there was a dim style named standard or mydimstyle, it would be fine if it just looked through those as well and outputted the total even though I don’t need the total of any other than the specific ones I listed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 17:24:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407039#M96632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T17:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407090#M96633</link>
      <description>&lt;P&gt;Try this. I can't test at the moment. Does this do what you require or does it need refining? Display should be by an alert box at the end.&lt;/P&gt;&lt;PRE&gt;;Ron Harman
;Dimension Total By Dimstyle
(defun C:DTBD ( / c_doc ss d1_tot d2_tot d3_tot d4_tot dim_style dim_dim)
  (vl-load-com)
  (setq c_doc (vla-get-activedocument (vlax-get-acad-object))
        ss (ssget  '((0 . "DIMENSION")))
        d1_tot 0
        d2_tot 0
        d3_tot 0
        d4_tot 0
        units (getvar 'lunits)
        prec (getvar 'luprec) 
  )
  (vlax-for obj (vla-get-activeselectionset c_doc)
    (setq dim_style (strcase (vlax-get-property obj 'stylename))
          dim_dim (vlax-get-property obj 'measurement)
    )
    (cond ( (eq dim_style "PRECUTRC")
            (setq d1_tot (+ d1_tot dim_dim))
          )  
          ( (eq dim_style "PRECUTLC")
            (setq d2_tot (+ d2_tot dim_dim))
          ) 
          ( (eq dim_style "PRECUT")
            (setq d3_tot (+ d3_tot dim_dim))
          ) 
          ( (eq dim_style "PRECUTSC")
            (setq d4_tot (+ d4_tot dim_dim))
          )
    );end_cond
  );end_for
  (alert  (strcat 
            "Dimension Style Totals : "
            "\nPrecutRC : " (rtos d1_tot units prec)
            "\nPrecutLC : "  (rtos d2_tot units prec) 
            "\nPrecut : "  (rtos d3_tot units prec) 
            "\nPrecutSC : "  (rtos d4_tot units prec)
          )
  );end_alert
  (princ)
);end_defun&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Nov 2018 17:47:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407090#M96633</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2018-11-16T17:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407477#M96634</link>
      <description>&lt;P&gt;Yes, that works great thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshot:&lt;/P&gt;&lt;P&gt;&lt;A href="http://prntscr.com/ljbi84" target="_blank"&gt;http://prntscr.com/ljbi84&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be possible to print it to the autocad command line as well / instead?&amp;nbsp;&amp;nbsp; Can't copy/paste out of a alert box!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 21:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407477#M96634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T21:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407570#M96635</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;;Ron Harman
;Dimension Total By Dimstyle
(defun C:DTBD ( / c_doc ss d1_tot d2_tot d3_tot d4_tot dim_style dim_dim results)
  (vl-load-com)
  (setq c_doc (vla-get-activedocument (vlax-get-acad-object))
        ss (ssget  '((0 . "DIMENSION")))
        d1_tot 0
        d2_tot 0
        d3_tot 0
        d4_tot 0
        units (getvar 'lunits)
        prec (getvar 'luprec) 
  )
  (vlax-for obj (vla-get-activeselectionset c_doc)
    (setq dim_style (strcase (vlax-get-property obj 'stylename))
          dim_dim (vlax-get-property obj 'measurement)
    );end_setq
    (cond ( (eq dim_style "PRECUTRC")
            (setq d1_tot (+ d1_tot dim_dim))
          )  
          ( (eq dim_style "PRECUTLC")
            (setq d2_tot (+ d2_tot dim_dim))
          ) 
          ( (eq dim_style "PRECUT")
            (setq d3_tot (+ d3_tot dim_dim))
          ) 
          ( (eq dim_style "PRECUTSC")
            (setq d4_tot (+ d4_tot dim_dim))
          )
    );end_cond
  );end_for
  (setq results
    (strcat 
      "Dimension Style Totals :"
      " PrecutRC : " (rtos d1_tot units prec)
      " PrecutLC : " (rtos d2_tot units prec) 
      " Precut   : " (rtos d3_tot units prec) 
      " PrecutSC : " (rtos d4_tot units prec)
    );end_strcat
  )
  (princ results)
  
&lt;FONT color="#0000FF"&gt;  (while (vl-string-search " P" results)
    (setq results (vl-string-subst "\nP" " P" results))
  );end_while

  (alert results)&lt;/FONT&gt;
  (princ)
);end_defun&lt;/PRE&gt;&lt;P&gt;If you don't want the alert popup, remove the blue lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 22:10:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407570#M96635</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2018-11-16T22:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting dimensions AND prefix to csv</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407720#M96636</link>
      <description>&lt;P&gt;Thanks a ton that should be perfect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 00:06:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/exporting-dimensions-and-prefix-to-csv/m-p/8407720#M96636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-17T00:06:56Z</dc:date>
    </item>
  </channel>
</rss>

