<?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 for Data extraction with blocks and polylines in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12357168#M22322</link>
    <description>&lt;P&gt;Only thing that isn't pulling in my drawing are the different vaults and their layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple questions for you:&lt;/P&gt;&lt;P&gt;Can we change the font colors to all be black?&lt;/P&gt;&lt;P&gt;Is there a way to make the length a whole number instead of having decimals?&lt;/P&gt;&lt;P&gt;Can we automatically make the table have a white background mask?&lt;/P&gt;&lt;P&gt;Is there anyway that if there are multiple polylines on the same layer that the lengths combine onto one row instead of them coming in separate?&lt;/P&gt;&lt;P&gt;We can also delete the heading row, that won't be needed&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 15:35:00 GMT</pubDate>
    <dc:creator>josh_buck3A23W</dc:creator>
    <dc:date>2023-11-06T15:35:00Z</dc:date>
    <item>
      <title>Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12344341#M22314</link>
      <description>&lt;P&gt;I'm brand new to LISP. I'm trying to extract data to create a table on each sheet i have. It's 2D for utility contruction, so all i have are polylines, their layers, and their lengths, as well as the specific blocks and their specific layers. Can anyone help?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 18:01:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12344341#M22314</guid>
      <dc:creator>josh_buck3A23W</dc:creator>
      <dc:date>2023-10-31T18:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12344555#M22315</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;post a sample drawing file (.dwg ) that shows what you described on your post. Also show how the table should appear on your sheet.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 19:36:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12344555#M22315</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2023-10-31T19:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12344589#M22316</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14472324"&gt;@josh_buck3A23W&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, probably the easiest &lt;EM&gt;human-readable&lt;/EM&gt; way to get information about your polylines, would be from using the &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-A65FBCCF-CC5D-47E8-9117-D577D9CB9D8A" target="_blank" rel="noopener"&gt;(dumpallproperties ...)&lt;/A&gt;, &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-8E5913FC-09ED-4C70-AFB7-2431C062E899" target="_blank" rel="noopener"&gt;(getpropertyvalue ...)&lt;/A&gt;, and &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-8F32FD8C-D81A-4DCA-B455-9D560CF17246" target="_blank" rel="noopener"&gt;(setpropertyvalue ...)&lt;/A&gt; methods. But they have limited properties sometimes.&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:TEST ( / ClosedState LineGenState e closed lineGen)
  ;; define some helper functions
  (defun ClosedState (s) (if (zerop s) "Not Closed" "Closed"))
  (defun LineGenState (s) (if (zerop s) "Disabled" "Enabled"))
  ;; begin main work
  (setq e (car (entsel "Select Polyline: ")))
  (setq closed (getpropertyvalue e "Closed"))
  (alert (strcat "\nYour polyline is currently " (ClosedState closed) "."))
  (setq lineGen (getpropertyvalue e "Plinegen"))
  (alert (strcat "\nYour polyline line generation is currently " (LineGenState lineGen) "."))
  ;; switch it up
  (setq closed (abs (1- closed)))
  (setq lineGen (abs (1- lineGen)))
  (setpropertyvalue e "Closed" closed)
  (setpropertyvalue e "Plinegen" lineGen)
  (alert (strcat "\nYour polyline is now " (ClosedState closed) "."))
  (alert (strcat "\nYour polyline line generation is now currently " (LineGenState lineGen) "."))
  ;; finish
  (alert "Check your command history [F2] to see polyline property dump")
  (dumpallproperties e)
  (princ)
);defun&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise, eventually you should also get accustomed to the &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-235B22E0-A567-4CF6-92D3-38A2306D73F3" target="_blank" rel="noopener"&gt;DXF Format &amp;amp; Entity Codes&lt;/A&gt;&amp;nbsp;to retrieve polyline data.&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:TEST ( / e lyr)
  (setq e (car (entsel "Select Polyline: ")))
  (setq lyr (cdr (assoc 8 (entget e))))
  (alert (strcat "Your polyline is on layer: " lyr))
  (alert "Check your command history [F2] to see polyline Entity Code dump.")
  (print (entget e))
  (princ)
);defun&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when you're wanting to do some heavy lifting, you might eventually get into &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-36BF58F3-537D-4B59-BEFE-2D0FEF5A4443" target="_blank" rel="noopener"&gt;Visual Lisp (ActiveX)&lt;/A&gt;.&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:TEST ( / e coords newPoly)
  (vl-load-com)
  (setq e (vlax-ename-&amp;gt;vla-object (car (entsel "Select Polyline: "))))
  ;; get polyline coords
  (setq coords (vlax-get e 'Coordinates))
  (alert (strcat "The coordinate list for your polyline is:\n" (vl-prin1-to-string coords)))
  ;; copy current polyline
  (setq newPoly (vlax-invoke e 'Copy))
  ;; move new polyline right &amp;amp; down 2 units
  (vla-Move newPoly (vlax-3d-point 0 0 0) (vlax-3d-point 2 -2 0))
  (alert "Your polyline has been copied Right 2 units &amp;amp; Down 2 units.")
  ;; finish up
  (alert "Check your command history [F2] to see polyline Visual Lisp property dump.")
  (vlax-dump-object e)
  (princ)
);defun&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 19:50:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12344589#M22316</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-10-31T19:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12344710#M22317</link>
      <description>&lt;P&gt;The table is in the drawing&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 20:47:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12344710#M22317</guid>
      <dc:creator>josh_buck3A23W</dc:creator>
      <dc:date>2023-10-31T20:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12348409#M22318</link>
      <description>&lt;P&gt;Yes can be done looks relatively simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A comment when getting the 1-conduit etc would create the table with sorted data based on x-conduit and lengths a simple add on. Yes can see some blocks so I take it the 1st column is a count column ? Please confirm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re gaps in table how do we know when to leave gaps ? is 1 gap ok ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No headings or title should there be ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ask these questions as some one who may provide an answer it's painful when you keep going back adding 1 extra item each time rather than do it right 1st go. Added for moment to my To do list.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 07:22:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12348409#M22318</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-11-02T07:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12349138#M22319</link>
      <description>&lt;P&gt;Yes, the column on the left is a count column for counting the blocks. I don't care about gaps so either way would be fine. If i could add rows and columns to the table that would be nice just in case i need to do any manual entries. Title doesn't matter either. In the future I am going to be trying to figure out how to get this to create a BOM, but i know thats much more in depth&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 12:47:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12349138#M22319</guid>
      <dc:creator>josh_buck3A23W</dc:creator>
      <dc:date>2023-11-02T12:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12351107#M22320</link>
      <description>&lt;P&gt;Create BOM ? If you mean send to Excel yes, there is table to Excel.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 06:12:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12351107#M22320</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-11-03T06:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12355933#M22321</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:wow ( / josh lst1 lst2 lst3 lst1a lay bname x val cnt ss len obj curspace pt1 
CreateTableStyle _sort my-count LM:ListDupes numcolumns numrows rowheight colwidth objtable)
(defun CreateTableStyle ( / 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"))
(setq txtht 7.0)
(setq josh "No")
(vlax-for dname dictobj
(if (=  (vla-get-name dname) "Josh" ) ; does it exist
(setq josh "found")
)
)

(if (= josh "No")
(progn

;; Create a custom table style
(setq key "Josh" class "AcDbTableStyle")
(setq custObj (vla-AddObject dictObj key class))

;; Set the name and description for the style
(vla-put-Name custObj "Josh")
(vla-put-Description custObj "Josh 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))

(setq colObj (vlax-create-object (strcat "AutoCAD.AcCmColor." (substr (getvar "ACADVER") 1 2))))

    (vla-setRGB colObj 255 0 0)
    (vla-setcolor cuStobj acTitleRow colObj)

    (vla-setRGB colObj 255 0 255)
    (vla-setcolor cuStobj acHEADERRow colObj)

;; Set the text height and style for the Title row
(vla-SetTextStyle custObj (+ acDataRow acHeaderRow acTitleRow) "Standard")

; (vla-put-regeneratetablesuppressed custobj :vlax-false)
)
)

(setvar 'ctablestyle "Josh")
  (princ)
) ; CreateTableStyle

(defun _sort (l )
(vl-sort l
	 '(lambda (a b)
	    (cond
	      ((&amp;lt; (car a) (car b)))
	      ((= (car a) (car b)) (&amp;lt; (cadr a) (cadr b)))
	    )
	  )
)
)

; By Gile
(defun my-count (a L)
  (cond
   ((null L) 0)
   ((equal a (car L)) (+ 1 (my-count a (cdr L))))
   (t (my-count a (cdr L))))
)

;; List Duplicates  -  Lee Mac
;; Returns a list of items appearing more than once in a supplied list

(defun LM:ListDupes ( l )
   (if l
       (if (member (car l) (cdr l))
           (cons (car l) (LM:ListDupes (vl-remove (car l) (cdr l))))
           (LM:ListDupes (vl-remove (car l) (cdr l)))
       )
   )
)

;;;;;;;;;;;;;;;;;;;;;; starts here  ;;;;;;;;;;;;;;;;

(setq ss (ssget '((0 . "LWPOLYLINE,INSERT"))))
(if (= ss nil)
(progn
(alert "Something went wrong no objects selected \nwill now exit")
(exit)
)
)

(setq lst1 '() lst2 '())
(repeat (setq x (sslength ss))
  (setq obj (vlax-ename-&amp;gt;vla-object (ssname ss (setq x (- x 1)))))
  (if (= (vlax-get obj 'ObjectName) "AcDbBlockReference")
  (progn
    (setq bname (vlax-get obj 'EffectiveName )
    lay (vlax-get obj 'Layer ))
    (setq lst1 (cons (list lay bname) lst1))
  )
  (progn
    (setq lay  (vlax-get obj 'Layer ) len (vlax-get obj 'Length))
    (setq lst2 (cons (list lay len) lst2))
  )
  )
)

(setq lst1 (_sort lst1))
(setq lst2 (_sort lst2))

(setq lst3 '())
(setq lst1a (LM:ListDupes lst1))
(foreach val lst1a
 (setq cnt (my-count  val lst1))
 (setq lst3 (cons (list  (nth 0 val)(nth 1 val) (nth 2 val) cnt) lst3))
)

(CreateTableStyle)

(Setq curspace (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object))))
(setq pt1 (vlax-3d-point (getpoint "\nPick point for top left hand of table:  ")))
(setq numrows 3)
(setq numcolumns 4)
(setq rowheight 25)
(setq colwidth 80)
(setq objtable (vla-addtable curspace pt1 numrows numcolumns rowheight colwidth))
(vla-settext objtable 0 0 "Heading 1")
(vla-settext objtable 1 0 "Count")
(vla-settext objtable 1 1 "Layer or\nObject")
(vla-settext objtable 1 3 "Length")
(vla-Setcolumnwidth Objtable  0 45.0)
(vla-Setcolumnwidth Objtable  1 75.0)
(vla-Setcolumnwidth Objtable  2 100.0)
(vla-Setcolumnwidth Objtable  3 55.0)
(setq objtable (vlax-ename-&amp;gt;vla-object (entlast)))

(setq numrows 3)
(foreach val lst2
  (vla-InsertRows Objtable  numrows (vla-GetRowHeight Objtable (1- numrows)) 1)
  (vla-settext objtable numrows 1 "Polyline")
  (vla-settext objtable numrows 2 (car val))
  (vla-settext objtable numrows 3 (rtos (cadr val) 2 3))
  (setq numrows (1+ numrows))
)
(vla-InsertRows Objtable  numrows (vla-GetRowHeight Objtable (1- numrows)) 1)
(setq numrows (1+ numrows))

(foreach val lst3
  (vla-InsertRows Objtable  numrows (vla-GetRowHeight Objtable (1- numrows)) 1)
  (vla-settext objtable numrows 0 (nth 3 val))
  (vla-settext objtable numrows 1 (nth 0 val))
  (vla-settext objtable numrows 2 (nth 1 val))
  (setq numrows (1+ numrows))
)

(princ)
)
(c:wow)
&lt;/LI-CODE&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="SeaHaven_0-1699245022931.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1288684i8B8E4C514732687D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1699245022931.png" alt="SeaHaven_0-1699245022931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 04:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12355933#M22321</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-11-06T04:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12357168#M22322</link>
      <description>&lt;P&gt;Only thing that isn't pulling in my drawing are the different vaults and their layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple questions for you:&lt;/P&gt;&lt;P&gt;Can we change the font colors to all be black?&lt;/P&gt;&lt;P&gt;Is there a way to make the length a whole number instead of having decimals?&lt;/P&gt;&lt;P&gt;Can we automatically make the table have a white background mask?&lt;/P&gt;&lt;P&gt;Is there anyway that if there are multiple polylines on the same layer that the lengths combine onto one row instead of them coming in separate?&lt;/P&gt;&lt;P&gt;We can also delete the heading row, that won't be needed&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:35:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12357168#M22322</guid>
      <dc:creator>josh_buck3A23W</dc:creator>
      <dc:date>2023-11-06T15:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12357170#M22323</link>
      <description>&lt;P&gt;It's working great so far though! thank you so much&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 14:59:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12357170#M22323</guid>
      <dc:creator>josh_buck3A23W</dc:creator>
      <dc:date>2023-11-06T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12358680#M22324</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"Can we change the font colors to all be black?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Remove&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq colObj (vlax-create-object (strcat "AutoCAD.AcCmColor." (substr (getvar "ACADVER") 1 2))))

    (vla-setRGB colObj 255 0 0)
    (vla-setcolor cuStobj acTitleRow colObj)

    (vla-setRGB colObj 255 0 255)
    (vla-setcolor cuStobj acHEADERRow colObj)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;"No Title"&lt;/P&gt;&lt;P&gt;Easiest is remove. It will still do title but will be blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(vla-settext objtable 0 0 "Heading 1")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Is there a way to make the length a whole number instead of having decimals?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Change&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(vla-settext objtable numrows 3 (rtos (cadr val) 2 0))&lt;/LI-CODE&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;&lt;SPAN&gt;Is there anyway that if there are multiple polylines on the same layer that the lengths combine onto one row instead of them coming in separate?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I will have a think about that request, needs a rethink.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can we automatically make the table have a white background mask?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes need to do as part of the make table style.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq colObj (vlax-create-object (strcat "AutoCAD.AcCmColor." (substr (getvar "ACADVER") 1 2))))
    (vla-SetRGB colObj 255 255 255)
    (vla-SetBackgroundColor Objtable (+ acHeaderRow acTitleRow acDataRow) colObj)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Nov 2023 01:38:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12358680#M22324</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-11-07T01:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12363871#M22325</link>
      <description>&lt;P&gt;Thank you!!!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 19:55:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12363871#M22325</guid>
      <dc:creator>josh_buck3A23W</dc:creator>
      <dc:date>2023-11-08T19:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12367452#M22326</link>
      <description>&lt;P&gt;Glad to help.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 02:02:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12367452#M22326</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-11-10T02:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12369194#M22327</link>
      <description>&lt;P&gt;Bothering you again already. Where do I go in and change the size of the table when it comes in? using the corner drag doesn't work well, so i need it to just come in smaller. Also, one of the rows just needs a formula to calculate the total lengths but i don't know how to add the code. that would maybe solve the totaling problem.&lt;/P&gt;&lt;P&gt;Lastly, we could get rid of one of the columns. I'd only need the count, length, and layer columns&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 17:00:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12369194#M22327</guid>
      <dc:creator>josh_buck3A23W</dc:creator>
      <dc:date>2023-11-10T17:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp for Data extraction with blocks and polylines</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12371663#M22328</link>
      <description>&lt;P&gt;I made the table match your sample, by making a table style, do you just want a smaller font ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column width is controlled by the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(vla-Setcolumnwidth Objtable  0 45.0)&lt;/PRE&gt;&lt;P&gt;Remove a column yes, the table is set early to how many columns just look for that, but if you remove a column you may have to edit the (SETTEXT row column val)&amp;nbsp; values as the column number may need changing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Is there anyway that if there are multiple polylines on the same layer that the lengths combine onto one row instead of them coming in separate?" Yes needs a recode though, will have to think about it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2023 07:58:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-data-extraction-with-blocks-and-polylines/m-p/12371663#M22328</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-11-12T07:58:47Z</dc:date>
    </item>
  </channel>
</rss>

