<?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: lisp to Extract Data, attributes in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13337347#M2818</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;thanks will change to Standard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had problems setting number of column and rows as part of style but somewhere it is there. Will try to find.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thought about the (createstyle "250table" 10.0 3&amp;nbsp; '(30 100 30)) so 10 is text height, 3 rows etc the number of columns is length of list and their respective width. So redoing my "make a table.lsp".&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2025 22:37:07 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2025-02-24T22:37:07Z</dc:date>
    <item>
      <title>lisp to Extract Data, attributes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13335045#M2811</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;I have many blocks with only one attribute&lt;BR /&gt;"CODIGO", almost all the blocks are also dynamic&lt;/P&gt;&lt;P&gt;For example this clamp&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgearone_inssitu_0-1740328103792.png" style="width: 171px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470133i94089191FD8ADF36/image-dimensions/171x101?v=v2" width="171" height="101" role="button" title="jorgearone_inssitu_0-1740328103792.png" alt="jorgearone_inssitu_0-1740328103792.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;which has these two views&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I finish an entire assembly drawing of parts&lt;BR /&gt;I always want a report of the quantity I need&lt;BR /&gt;Almost always in the same drawing I use the two views of the same block&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have solved it with the "DATA EXTRACTION"&lt;BR /&gt;but I always have to repeat the same process&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgearone_inssitu_1-1740328335777.png" style="width: 331px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470135i2F859A6C98CD82C6/image-dimensions/331x227?v=v2" width="331" height="227" role="button" title="jorgearone_inssitu_1-1740328335777.png" alt="jorgearone_inssitu_1-1740328335777.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;1. -SELECT ANY ONE file&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;2.- Select objects in the current drawing&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgearone_inssitu_3-1740328475741.png" style="width: 304px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470137i58FD7A1B5B66E318/image-dimensions/304x207?v=v2" width="304" height="207" role="button" title="jorgearone_inssitu_3-1740328475741.png" alt="jorgearone_inssitu_3-1740328475741.png" /&gt;&lt;/span&gt;&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="jorgearone_inssitu_2-1740328416265.png" style="width: 357px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470136iDA01A3E995140DFA/image-dimensions/357x142?v=v2" width="357" height="142" role="button" title="jorgearone_inssitu_2-1740328416265.png" alt="jorgearone_inssitu_2-1740328416265.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.- select only&lt;/P&gt;&lt;P&gt;Display blocks only&lt;/P&gt;&lt;P&gt;Display blocks with attributes only&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgearone_inssitu_5-1740328619015.png" style="width: 274px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470141i5719F5D2238AC8BB/image-dimensions/274x185?v=v2" width="274" height="185" role="button" title="jorgearone_inssitu_5-1740328619015.png" alt="jorgearone_inssitu_5-1740328619015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4.- select only, category filter: Attribute&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgearone_inssitu_6-1740328685223.png" style="width: 326px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470142i055B3304B7EA97DD/image-dimensions/326x223?v=v2" width="326" height="223" role="button" title="jorgearone_inssitu_6-1740328685223.png" alt="jorgearone_inssitu_6-1740328685223.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5.- order the table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgearone_inssitu_7-1740328731327.png" style="width: 328px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470143i321E8438A8545BE3/image-dimensions/328x225?v=v2" width="328" height="225" role="button" title="jorgearone_inssitu_7-1740328731327.png" alt="jorgearone_inssitu_7-1740328731327.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgearone_inssitu_8-1740328794697.png" style="width: 369px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470144i03A3630DF4E05057/image-dimensions/369x253?v=v2" width="369" height="253" role="button" title="jorgearone_inssitu_8-1740328794697.png" alt="jorgearone_inssitu_8-1740328794697.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;CODIGO - Name - Count&lt;/P&gt;&lt;P&gt;CODIGO:&amp;nbsp;IN ALPHABETICAL ORDER&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6.- INSERT DATA EXTRACTION TABLE INTO DRAWING&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorgearone_inssitu_9-1740328922737.png" style="width: 333px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470146iC483D67775C4E4E4/image-dimensions/333x227?v=v2" width="333" height="227" role="button" title="jorgearone_inssitu_9-1740328922737.png" alt="jorgearone_inssitu_9-1740328922737.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="jorgearone_inssitu_10-1740328965388.png" style="width: 350px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470149iD95CA89798985FC2/image-dimensions/350x125?v=v2" width="350" height="125" role="button" title="jorgearone_inssitu_10-1740328965388.png" alt="jorgearone_inssitu_10-1740328965388.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY QUESTION IS IF THIS ENTIRE PROCESS CAN BE DONE WITH A LISP&lt;/P&gt;&lt;P&gt;SINCE I USUALLY DO THIS 13 TIMES A DAY&lt;BR /&gt;AND THERE ARE MANY MORE BLOCKS THAN THE ONES I PRESENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 16:44:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13335045#M2811</guid>
      <dc:creator>jorgearone_inssitu</dc:creator>
      <dc:date>2025-02-23T16:44:34Z</dc:date>
    </item>
    <item>
      <title>Betreff: lisp to Extract Data, attributes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13335105#M2812</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you need to do it with the SAME selection set(same drawing, same filepath), yes.&lt;/P&gt;&lt;P&gt;Run -dataextration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if not, NO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Search for a 100% Lisp solution, rather than controle this native command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 17:43:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13335105#M2812</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2025-02-23T17:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to Extract Data, attributes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13335446#M2813</link>
      <description>&lt;P&gt;Here's what I have so far. No more time to work on it.&lt;/P&gt;&lt;P&gt;You drag/drop the lisp into an open drawing, builds a table.&lt;/P&gt;&lt;P&gt;I cannot seem to make the Table smaller ? , but it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 01:16:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13335446#M2813</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2025-02-24T01:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to Extract Data, attributes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13335551#M2814</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15306255"&gt;@ec-cad&lt;/a&gt;&amp;nbsp;this may be useful, makes a table style and sets current. When you make a table it uses current table style so sometimes is no where near what you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun CreateTableStyle (newdname txtht / dicts dictobj key class custobj )
    
 ;; Get the Dictionaries collection and the TableStyle dictionary
(setq dicts (vla-get-Dictionaries (vla-get-ActiveDocument(vlax-get-acad-object))))
(setq dictObj (vla-Item dicts "acad_tablestyle"))

(vlax-for dname dictobj
(if (=  (vla-get-name dname) newdname) ; does it exist
(setvar 'ctablestyle newdname)
(progn

;; Create a custom table style
(setq key newdname class "AcDbTableStyle")
(setq custObj (vla-AddObject dictObj key class))

;; Set the name and description for the style
(vla-put-Name custObj newdname)
(vla-put-Description custObj (strcat newdname "custom table style"))

;; Sets the bit flag value for the style
(vla-put-BitFlags custObj 1)

;; Sets the direction of the table, top to bottom or bottom to top
(vla-put-FlowDirection custObj acTableTopToBottom)

;; Sets the horizontal margin for the table cells
(vla-put-HorzCellMargin custObj txtht )

;; Sets the vertical margin for the table cells
(vla-put-VertCellMargin custObj txtht )

;; Set the alignment for the Data, Header, and Title rows
(vla-SetAlignment custObj (+ acDataRow acHeaderRow acTitleRow) acMiddleCenter)

;; Set the text height for the Title, Header and Data rows
(vla-SetTextHeight custObj acDataRow txtht)
(vla-SetTextHeight custObj acHeaderRow (* txtht 1.2))
(vla-SetTextHeight custObj acTitleRow (* txtht 1.5))

;; Set the text height and style for the Title row
(vla-SetTextStyle custObj (+ acDataRow acHeaderRow acTitleRow) "Standard")

(setvar 'ctablestyle newdname)
)
)
 )
(princ)
) ; CreateTableStyle

(CreateTableStyle  "EC-CAD" 0.5)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 22:37:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13335551#M2814</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-02-24T22:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to Extract Data, attributes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13336808#M2815</link>
      <description>&lt;P&gt;Sea-Haven,&lt;/P&gt;&lt;P&gt;Thanks for that. I saved the code as 'Create_table_style.lsp', loaded it and I get this message.&lt;/P&gt;&lt;P&gt;Fails on line with: (setq custObj (vla-AddObject dictObj key class))&lt;/P&gt;&lt;P&gt;Command: (LOAD "C:/Disk8/create_table_style.lsp")&lt;BR /&gt;Error: Automation Error. AcRxClassName entry is not in the system registry&lt;BR /&gt;Error: Break...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that's an issue with my local PC, running ACAD license from work PC. I cannot get to the&lt;/P&gt;&lt;P&gt;Windows registry on that machine, so cannot test further. I see in the code, you can adjust text sizes&lt;/P&gt;&lt;P&gt;and 'style', but nothing to control Column Width (see OP sample.dwg)&lt;/P&gt;&lt;P&gt;OP (could just scale down that default table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 17:18:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13336808#M2815</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2025-02-24T17:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to Extract Data, attributes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13336935#M2816</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;I get that error too:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_1-1740420430678.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470505i212679EAAC13671D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_1-1740420430678.png" alt="paullimapa_1-1740420430678.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Though I do see the &lt;STRONG&gt;Table Style&lt;/STRONG&gt; created but just not sure if it's complete:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1740420352082.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1470503i6E8FF2A4402AF5DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1740420352082.png" alt="paullimapa_0-1740420352082.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've used this function and modified it for me to create a &lt;STRONG&gt;Table Style&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; aec_mkTableStyle function makes a Table Style if given Table Style Name does not exist
;; https://hyperpics.blogs.com/beyond_the_ui/2012/07/creating-a-table-style-with-autolisp-and-the-activex-api.html
; Arguments:
; tbl_name = custom table style name to create
; tbl_des = custom table style description
; cell_margin = cell margins horizontal &amp;amp; verticle
; ttl_height = title row height
; hdr_height = header row height
; dta_height = data row height 
; sty_name = text style name must exist
; (aec_mkTableStyle "Architectural Schedule" "This is Custom Table for Architecture" 0.22 1.5 1.25 1.0 "Standard")
(defun aec_mkTableStyle 
 (tbl_name tbl_des cell_margin ttl_height hdr_height dta_height sty_name 
  / GetObject acad class custObj doc dicts dictObj doc dicts dictObj
 )
;; GetObject
;; Returns an object (Custom Object) from the dictionary according to its name (or nil) if does not exist
;; Arguments
;; dict: the dictionary (vla-object)
;; name: the name of the object (string)
;; https://gilecad.azurewebsites.net/LISP/gc_AutomationHelpers.lsp
 (defun GetObject (dict name / obj)
  (if(not(vl-catch-all-error-p(vl-catch-all-apply (function (lambda () (setq obj (vla-GetObject dict name)))))))obj)
 ) ; defun GetObject
    ;; Get the AutoCAD application and current document
    (setq acad (vlax-get-acad-object))
    (setq doc (vla-get-ActiveDocument acad))

    ;; Get the Dictionaries collection and the TableStyle dictionary
    (setq dicts (vla-get-Dictionaries doc))
    (setq dictObj (vla-Item dicts "acad_tablestyle"))
    (if(not(GetObject dictObj tbl_name)) ; check if table style name exists
     (progn   
    ;; Create a custom table style
      (setq class "AcDbTableStyle")
      (setq custObj (vla-AddObject dictObj tbl_name class))

    ;; Set the name and description for the style
      (vla-put-Name custObj tbl_name)
      (vla-put-Description custObj tbl_des)

    ;; Sets the bit flag value for the style
      (vla-put-BitFlags custObj 1)

    ;; Sets the direction of the table, top to bottom or bottom to top
      (vla-put-FlowDirection custObj acTableTopToBottom)

    ;; Sets the supression of the table header
      (vla-put-HeaderSuppressed custObj :vlax-false)

    ;; Sets the horizontal margin for the table cells
      (vla-put-HorzCellMargin custObj cell_margin)

    ;; Sets the supression of the table title
      (vla-put-TitleSuppressed custObj :vlax-false)

    ;; Sets the vertical margin for the table cells
      (vla-put-VertCellMargin custObj cell_margin)

    ;; Set the alignment for the Data, Header, and Title rows
;      (vla-SetAlignment custObj (+ acDataRow acTitleRow) acMiddleLeft)
;      (vla-SetAlignment custObj (+ acDataRow acTitleRow) acMiddleCenter) ; data and title row alignment
      (vla-SetAlignment custObj acDataRow acMiddleCenter) ; data and title row alignment
      (vla-SetAlignment custObj acHeaderRow acMiddleCenter) ; header row alignment
      (vla-SetAlignment custObj acTitleRow acMiddleCenter)  ; title row alignment
    ;; possible future addition Set the background color for the Header and Title rows
;    (if(= (getvar 'product) "AutoCAD")  
;     (progn
;      (setq colObj (vlax-create-object (strcat "AutoCAD.AcCmColor." (substr (getvar "ACADVER") 1 2))))
;      (vla-SetRGB colObj 98 136 213)
;      (vla-SetBackgroundColor custObj (+ acHeaderRow acTitleRow) colObj)
    ;; Set the bottom grid color for the Title row
;      (vla-SetRGB colObj 0 0 255)
;      (vla-SetGridColor custObj acHorzBottom acTitleRow colObj)
    ;; Clear the background color for Data rows
;      (vla-SetBackgroundColorNone custObj acDataRow :vlax-true)
;     ) ; progn
;    ) ; if

    ;; Set the bottom grid lineweight for the Title row
      (vla-SetGridLineWeight custObj acHorzBottom acTitleRow acLnWt025)
    ;; Set the inside grid lines visible for the data and header rows
      (vla-SetGridVisibility custObj acHorzInside  (+ acDataRow acHeaderRow) :vlax-true)
    ;; Set the text height for the Title, Header and Data rows
      (vla-SetTextHeight custObj acTitleRow ttl_height)
;      (vla-SetTextHeight custObj acHeaderRow hdr_height)
;      (vla-SetTextHeight custObj acDataRow dta_height)
      (vla-SetTextHeight custObj (+ acDataRow acHeaderRow) dta_height) ; set both to same height
    ;; Set the text height and style for the Title, Header &amp;amp; Data rows
      (vla-SetTextStyle custObj (+ acDataRow acHeaderRow acTitleRow) sty_name)

    ;; Release the color object
      (if colObj(vlax-release-object colObj))
      (princ(strcat"\nTable Style Name [" tbl_name "] Successfully Created."))(princ)
   ) ; progn
   (progn
      (princ(strcat"\nTable Style Name [" tbl_name "] Already Exists."))(princ)
   )
	) ; if
    (princ)
) ; defun aec_mkTableStyle&lt;/LI-CODE&gt;&lt;P&gt;Another option after the &lt;STRONG&gt;Table&lt;/STRONG&gt; is completed is to &lt;STRONG&gt;Scale&lt;/STRONG&gt; the &lt;STRONG&gt;Table&lt;/STRONG&gt; object up to match with the reciprocal &lt;STRONG&gt;cannoscalevalue:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(/ 1 (getvar"cannoscalevalue"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 18:18:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13336935#M2816</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-02-24T18:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to Extract Data, attributes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13337247#M2817</link>
      <description>&lt;P&gt;Found the error. Your code assumes a &lt;STRONG&gt;Text Style&lt;/STRONG&gt; named "&lt;STRONG&gt;Arial&lt;/STRONG&gt;" is already created in the drawing:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; Set the text height and style for the Title row
 (vla-SetTextStyle custObj (+ acDataRow acHeaderRow acTitleRow) "Arial")&lt;/LI-CODE&gt;&lt;P&gt;If you don't want to check and create a&lt;STRONG&gt; Text Style&lt;/STRONG&gt; named "&lt;STRONG&gt;Arial&lt;/STRONG&gt;" then you can just go with the default &lt;STRONG&gt;Text Style&lt;/STRONG&gt; of &lt;STRONG&gt;Standard&lt;/STRONG&gt;&amp;nbsp;then it won't end with the error message:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; Set the text height and style for the Title row
 (vla-SetTextStyle custObj (+ acDataRow acHeaderRow acTitleRow) "Standard")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 21:29:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13337247#M2817</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-02-24T21:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to Extract Data, attributes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13337347#M2818</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;thanks will change to Standard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had problems setting number of column and rows as part of style but somewhere it is there. Will try to find.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thought about the (createstyle "250table" 10.0 3&amp;nbsp; '(30 100 30)) so 10 is text height, 3 rows etc the number of columns is length of list and their respective width. So redoing my "make a table.lsp".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 22:37:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13337347#M2818</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-02-24T22:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to Extract Data, attributes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13342051#M2819</link>
      <description>&lt;P&gt;Jorgearone_inssitu,&lt;/P&gt;&lt;P&gt;I have solved the Column Width issue. New program asks for picking selection set via Window.&lt;/P&gt;&lt;P&gt;2 points, with rectangle action. It gathers the info, into lists, sorts and quantifies each unique&lt;/P&gt;&lt;P&gt;value, then asks for a Point to place the Table and builds it there.&lt;/P&gt;&lt;P&gt;Hope you like this version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ECCAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sea-Haven, key for making the ColumnWidth:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;              ;; Define the row height and column width
              (setq rowheight 1.0)
              (setq colwidth 120)

              ;; Add the table to the drawing
              (setq objtable (vla-addtable curspace pt1 numrows numcolumns rowheight colwidth))

              ;; Set the header row
              (vla-settext objtable 1 0 "Part Number")
              (vla-settext objtable 1 1 "Part Name")
              (vla-settext objtable 1 2 "Quantity")
              (vla-setColumnWidth objtable 0 40); Added for Column 1
              (vla-setColumnWidth objtable 1 120); for Column 2
              (vla-setColumnWidth objtable 2 40);  for Column 3

              ;; Populate the table with data
              (setq row 2)
              (foreach item flist
                  (setq Att (car item))
                  (setq Nam (cadr item))
                  (setq Qua (caddr item))
                  (vla-settext objtable row 0 Att)
                  (vla-settext objtable row 1 Nam)
                  (vla-settext objtable row 2 Qua)
                  (setq row (1+ row))
              )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;You could send those values in via a List, then car,cadr,caddr that.&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 23:44:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13342051#M2819</guid>
      <dc:creator>ec-cad</dc:creator>
      <dc:date>2025-02-26T23:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to Extract Data, attributes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13342131#M2820</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15306255"&gt;@ec-cad&lt;/a&gt; I understand when using vla-addtable it asks for columnwidth I was looking for a way to set the default value in the actual table style definition. But thinking more about it more , setting rows and column width allows for more rows &amp;amp; columns but still using the style say for height in particular.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;(createstyle "10texttable" 10.0 3&amp;nbsp; '(30 100 30))&amp;nbsp;will look into this more.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 00:56:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-extract-data-attributes/m-p/13342131#M2820</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-02-27T00:56:11Z</dc:date>
    </item>
  </channel>
</rss>

