<?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: How to lock all table cells in a drawing in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803031#M69006</link>
    <description>&lt;P&gt;Hey! thanks for the response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I'm currently using to &lt;EM&gt;&lt;STRONG&gt;unlock&lt;/STRONG&gt;&lt;/EM&gt; all the table cells in my drawing-- I figured it would be a quick easy fix to use the same script to &lt;EM&gt;&lt;STRONG&gt;lock&lt;/STRONG&gt; &lt;/EM&gt;all my cells but I'm having some difficulty.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;(defun AH:lockcell ( / x y)&lt;BR /&gt;(setvar 'ctab "Model")&lt;BR /&gt;(setq y 0)&lt;BR /&gt;(setq ss (ssget "X" (list (cons 0 "ACAD_TABLE"))))&lt;BR /&gt;(repeat (setq X (sslength ss))&lt;BR /&gt;(setq obj (vlax-ename-&amp;gt;vla-object(ssname ss (setq x (- x 1)))))&lt;BR /&gt;(setq nRows (- (vla-get-rows obj) 1))&lt;BR /&gt;(setq nCols (- (vla-get-Columns obj) 1))&lt;BR /&gt;(setq row 0)&lt;BR /&gt;(setq cell 0)&lt;BR /&gt;(vla-put-RegenerateTableSuppressed obj :vlax-true)&lt;BR /&gt;(while (&amp;lt;= row nRows)&lt;BR /&gt;(while (&amp;lt;= cell nCols)&lt;BR /&gt;(vla-setcellstate obj row Cell 0)&lt;BR /&gt;(setq cell (1+ cell))&lt;BR /&gt;(princ (strcat "\nRow : " (itoa row) " , cell " (itoa cell)))&lt;BR /&gt;);while&lt;BR /&gt;(setq row (1+ row))&lt;BR /&gt;(setq cell 0)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;(vla-put-RegenerateTableSuppressed obj :vlax-false)&lt;BR /&gt;)(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(AH:unlockcell)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried changing this value to a 1, 2, and 4 but it doesn't seem to work. Any ideas? I feel like it should be as simple as changing a single argument in a single command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls help this will literally perfect my script&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 17:48:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-14T17:48:02Z</dc:date>
    <item>
      <title>How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802740#M68999</link>
      <description>&lt;P&gt;I'm looking for a command to incorporate into my routine that will lock all the cells in various tables at the end of my routine. Does anybody know how to do this? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 15:41:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802740#M68999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-14T15:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802861#M69000</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm looking for a command to incorporate into my routine that will lock all the cells in various tables at the end of my routine. Does anybody know how to do this? Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LOCKED.png" style="width: 249px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831370i8595DE28CBCE6803/image-dimensions/249x235?v=v2" width="249" height="235" role="button" title="LOCKED.png" alt="LOCKED.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Only I have the key&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 16:29:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802861#M69000</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-10-14T16:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802917#M69001</link>
      <description>&lt;P&gt;So do you know or not?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:01:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802917#M69001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-14T17:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802975#M69002</link>
      <description>&lt;P&gt;Try this&amp;nbsp; .. feed it your vla-table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun _allcellsto (tbl state / c r)
  ;; RJP » 2020-10-14
  ;; accellstatenone (0)
  ;; accellstatecontentlocked (1)
  ;; accellstatecontentreadonly (2)
  ;; accellstateformatlocked (4)
  ;; accellstateformatreadonly (8)
  ;; accellstatelinked (16)
  ;; accellstatecontentmodified (32)
  ;; accellstateformatmodified (64)
  (repeat (setq r (vla-get-rows tbl))
    (setq r (1- r))
    (setq c (vla-get-columns tbl))
    (repeat c (setq c (1- c)) (vl-catch-all-apply 'vla-setcellstate (list tbl r c state)))
  )
  (princ)
)
;; Usage to lock all cells
;; (_allcellsto (vlax-ename-&amp;gt;vla-object (car (entsel))) 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:29:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802975#M69002</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2020-10-14T17:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802985#M69003</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So do you know or not?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since you ask nicely, No I Do Not Know, suffering from ID 10 T syndrome.&lt;/P&gt;
&lt;P&gt;FWIW, if you are wanting to lock ALL cells might as well lock the table itself.&amp;nbsp; uhhm layer .. lock.. maybe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; No need for the act now&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&amp;nbsp; posted the code before i had the chance &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:39:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802985#M69003</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-10-14T17:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802998#M69004</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Try this&amp;nbsp; .. feed it your vla-table:&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;You spoiler you&amp;nbsp;&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Party pooper.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:34:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9802998#M69004</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2020-10-14T17:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803030#M69005</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564264"&gt;@pbejse&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Try this&amp;nbsp; .. feed it your vla-table:&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT size="3"&gt;You spoiler you&amp;nbsp;&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Party pooper.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":nerd_face:"&gt;🤓&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:48:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803030#M69005</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2020-10-14T17:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803031#M69006</link>
      <description>&lt;P&gt;Hey! thanks for the response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I'm currently using to &lt;EM&gt;&lt;STRONG&gt;unlock&lt;/STRONG&gt;&lt;/EM&gt; all the table cells in my drawing-- I figured it would be a quick easy fix to use the same script to &lt;EM&gt;&lt;STRONG&gt;lock&lt;/STRONG&gt; &lt;/EM&gt;all my cells but I'm having some difficulty.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;(defun AH:lockcell ( / x y)&lt;BR /&gt;(setvar 'ctab "Model")&lt;BR /&gt;(setq y 0)&lt;BR /&gt;(setq ss (ssget "X" (list (cons 0 "ACAD_TABLE"))))&lt;BR /&gt;(repeat (setq X (sslength ss))&lt;BR /&gt;(setq obj (vlax-ename-&amp;gt;vla-object(ssname ss (setq x (- x 1)))))&lt;BR /&gt;(setq nRows (- (vla-get-rows obj) 1))&lt;BR /&gt;(setq nCols (- (vla-get-Columns obj) 1))&lt;BR /&gt;(setq row 0)&lt;BR /&gt;(setq cell 0)&lt;BR /&gt;(vla-put-RegenerateTableSuppressed obj :vlax-true)&lt;BR /&gt;(while (&amp;lt;= row nRows)&lt;BR /&gt;(while (&amp;lt;= cell nCols)&lt;BR /&gt;(vla-setcellstate obj row Cell 0)&lt;BR /&gt;(setq cell (1+ cell))&lt;BR /&gt;(princ (strcat "\nRow : " (itoa row) " , cell " (itoa cell)))&lt;BR /&gt;);while&lt;BR /&gt;(setq row (1+ row))&lt;BR /&gt;(setq cell 0)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;(vla-put-RegenerateTableSuppressed obj :vlax-false)&lt;BR /&gt;)(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(AH:unlockcell)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried changing this value to a 1, 2, and 4 but it doesn't seem to work. Any ideas? I feel like it should be as simple as changing a single argument in a single command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls help this will literally perfect my script&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:48:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803031#M69006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-14T17:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803047#M69007</link>
      <description>&lt;P&gt;OK .. spoon and all&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(defun c:foo (/ _allcellsto o s)
  (defun _allcellsto (tbl state / c r)
    ;; RJP » 2020-10-14
    ;; accellstatenone (0)
    ;; accellstatecontentlocked (1)
    ;; accellstatecontentreadonly (2)
    ;; accellstateformatlocked (4)
    ;; accellstateformatreadonly (8)
    ;; accellstatelinked (16)
    ;; accellstatecontentmodified (32)
    ;; accellstateformatmodified (64)
    (repeat (setq r (vla-get-rows tbl))
      (setq r (1- r))
      (setq c (vla-get-columns tbl))
      (repeat c (setq c (1- c)) (vl-catch-all-apply 'vla-setcellstate (list tbl r c state)))
    )
    (princ)
  )
  ;; Usage to lock all cells in all tables
  (if (setq s (ssget "_X" '((0 . "ACAD_TABLE"))))
    (foreach tbl (mapcar 'cadr (ssnamex s))
      (if (vlax-write-enabled-p (setq o (vlax-ename-&amp;gt;vla-object tbl)))
	(_allcellsto o 0)
      )
    )
  )
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:15:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803047#M69007</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2020-10-14T18:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803054#M69008</link>
      <description>&lt;P&gt;Try it like lazy stupid people like me&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set one cell lock like you&amp;nbsp; want (format,content or both),&lt;/P&gt;
&lt;P&gt;then check the property..&lt;/P&gt;
&lt;P&gt;Reverse engineering &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:57:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803054#M69008</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-10-14T17:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803080#M69009</link>
      <description>&lt;P&gt;That doesnt run at all for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:09:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803080#M69009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-14T18:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803086#M69010</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;That doesnt run at all for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Did you check your tables? The code above does not return anything. Works on my test drawing&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:12:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803086#M69010</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2020-10-14T18:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803091#M69011</link>
      <description>&lt;P&gt;My tables are currently unlocked and I ran that routine and nothing happened. But yes it returns nothing, but the goal isnt being accomplished &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:14:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803091#M69011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-14T18:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803097#M69012</link>
      <description>&lt;P&gt;Post your sample drawing.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:16:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803097#M69012</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2020-10-14T18:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803103#M69013</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rmurphyUCDDR_0-1602699429789.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/831423i654C2B5AFB0C8C22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rmurphyUCDDR_0-1602699429789.png" alt="rmurphyUCDDR_0-1602699429789.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:17:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803103#M69013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-14T18:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803120#M69014</link>
      <description>&lt;P&gt;You need to post your drawing .. can't troubleshoot a screen capture.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:22:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803120#M69014</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2020-10-14T18:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803147#M69015</link>
      <description>&lt;P&gt;here ya go, had to strip it down to avoid giving away any company info&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":zipper_mouth_face:"&gt;🤐&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:30:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803147#M69015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-14T18:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803164#M69016</link>
      <description>&lt;P&gt;Not sure what's happening for you. They all appear to lock when I run the code (FOO) .. take a looksee.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:36:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803164#M69016</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2020-10-14T18:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803177#M69017</link>
      <description>&lt;LI-CODE lang="general"&gt;(defun c:LockAllTables nil (LockAllTables))
(defun c:UnlockAllTables nil (UnlockAllTables))

(defun LockAllTables ( / ss i j k nrows ncols to)
	(cond 
		((setq ss (ssget "_X" '((0 . "ACAD_TABLE"))))
			(setq i 0)
			(while (&amp;lt; i (sslength ss))
				(setq to (vlax-ename-&amp;gt;vla-object (ssname ss i)))
					(setq nrows (vlax-get to 'Rows) ncols (vlax-get to 'Columns) j 0)
					(while (&amp;lt; j nrows) 
						(if (= (vlax-invoke-method to 'GetRowType j) acTitleRow) (vla-SetCellState to j 0 accellstatecontentlocked ))
							(progn
									(setq k 0)
									(while (&amp;lt; k ncols)(vla-SetCellState to j k accellstatecontentlocked)(setq k (+ k 1)))
							)
					(setq j (+ j 1))
					)
			(setq i (+ i 1))
			)
		)
	)
(princ "\nAll tables are locked!")
(princ)
)

(defun UnlockAllTables ( / ss i j k nrows ncols to)
	(cond 
		((setq ss (ssget "_X" '((0 . "ACAD_TABLE"))))
			(setq i 0)
			(while (&amp;lt; i (sslength ss))
				(setq to (vlax-ename-&amp;gt;vla-object (ssname ss i)))
					(setq nrows (vlax-get to 'Rows) ncols (vlax-get to 'Columns) j 0)
					(while (&amp;lt; j nrows) 
						(if (= (vlax-invoke-method to 'GetRowType j) acTitleRow) (vla-SetCellState to j 0 0 ))
							(progn
									(setq k 0)
									(while (&amp;lt; k ncols)(vla-SetCellState to j k 0)(setq k (+ k 1)))
							)
					(setq j (+ j 1))
					)
			(setq i (+ i 1))
			)
		)
	)
(princ "\nAll tables are unlocked!")
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it works then accept is as solution!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:41:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803177#M69017</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2020-10-14T18:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to lock all table cells in a drawing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803180#M69018</link>
      <description>&lt;P&gt;It is not doing anything for me when I type foo in and hit enter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Literally nothing. I run an unlock routine first, and then the lock code you provided. I wonder if the unlock routine is overpowering the lock routine since it is automatic in my drawing?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 18:42:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-lock-all-table-cells-in-a-drawing/m-p/9803180#M69018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-14T18:42:30Z</dc:date>
    </item>
  </channel>
</rss>

