<?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 help with keeping track if completed drawings? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190084#M81372</link>
    <description>&lt;P&gt;And the toggle!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun c:FUN ( / ctab ntab)
  (if (and (or (/= (getvar "TILEMODE") 1)
	       (alert (strcat "Error: You need to be in a layout.")))
	   (setq ctab (getvar 'ctab))
	   (setq ntab (if (vl-string-search "\\U+2714" ctab)
			(substr ctab 1 (vl-string-search "\\U+2714" ctab))
			(strcat ctab "\\U+2714")))
	   (or (not (vl-position ntab (layoutlist)))
	       (alert (strcat "Error: Already in use.")))
	   )
    (vla-put-name (vla-item (vla-get-layouts (vla-get-ActiveDocument (vlax-get-acad-object))) ctab) ntab))
  (princ)
  )
&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Mar 2021 17:58:39 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2021-03-26T17:58:39Z</dc:date>
    <item>
      <title>LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10189698#M81365</link>
      <description>&lt;P&gt;Hey Guys, First post here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if someone could make me a lisp that does the following:&lt;/P&gt;&lt;P&gt;-After typing "FIN" I would like it to take the current layout tab (regardless of what it's called, in this example it is M-101, see image 1) and add a tick mark to the end as seen in image 1.&lt;/P&gt;&lt;P&gt;-I would like to do this throughout the drawing to keep track of what sheets are finished. When I am done the tabs will look like image 2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-When all is done I would like to type "UFIN" (regardless of what layout I'm on) and have all tick marks removed from all sheets while maintaining the original sheet names. In this case, image 1 lay1 would just say "M-101" as apposed to "M-101&lt;STRONG&gt;✔"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-It is possible I may not have every layout checked when I am done, regardless once "UFIN" is typed I would like the ones without tick marks at the end to be left as is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is possible, any help is much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 15:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10189698#M81365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-26T15:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10189979#M81367</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello, what is meant by this? The tick mark works in the layout tab name per the screenshots? Or maybe I'm misunderstanding here. It accepts it as "✓" in notepad++&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 17:21:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10189979#M81367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-26T17:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10189988#M81368</link>
      <description>&lt;P&gt;Got it. Try the FIN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:FIN ( / ctab ntab)

  (if (and (or (/= (getvar "TILEMODE") 1)
	       (alert (strcat "Error: You need to be in a layout.")))
	   (setq ctab (getvar 'ctab))
	   (setq ntab (strcat ctab "\\U+2714"))
	   (or (not (vl-position ntab (layoutlist)))
	       (alert (strcat "Error: Already in use.")))
	   )
    (vla-put-name (vla-item (vla-get-layouts (vla-get-ActiveDocument (vlax-get-acad-object))) ctab) ntab))
  (princ)
  )
&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Mar 2021 17:28:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10189988#M81368</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-03-26T17:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190020#M81369</link>
      <description>&lt;P&gt;That's awesome!! Fin works beautifully. How tricky will ufin be? Also how do I accept two posts as 2 solutions?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 17:38:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190020#M81369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-26T17:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190046#M81370</link>
      <description>&lt;P&gt;Or maybe it would be simpler to make ufin jump to the first layout, only modify the current tab with the "tick",&amp;nbsp; and then tell it go to every page in order and run the previous line and stop when there are no pages left?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 17:46:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190046#M81370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-26T17:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190069#M81371</link>
      <description>&lt;P&gt;The second. One more is coming.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:UNFIN ( / layouts tabs ntab)

  (setq layouts (vla-get-layouts (vla-get-ActiveDocument (vlax-get-acad-object))))
  
  (if (setq tabs (vl-remove-if-not '(lambda (x) (vl-string-search "\\U+2714" x)) (layoutlist)))
    (foreach tab tabs
      (setq ntab (substr tab 1 (vl-string-search "\\U+2714" tab)))
      (if (or (not (vl-position ntab (layoutlist)))
	      (alert (strcat "Error: "' ntab '" already in use.")))
	(progn
	  (vla-put-name (vla-item layouts tab) ntab)
	  (princ (strcat "\n'" ntab "' has been unmarked."))))))
  (princ)
  )
&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Mar 2021 17:54:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190069#M81371</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-03-26T17:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190084#M81372</link>
      <description>&lt;P&gt;And the toggle!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun c:FUN ( / ctab ntab)
  (if (and (or (/= (getvar "TILEMODE") 1)
	       (alert (strcat "Error: You need to be in a layout.")))
	   (setq ctab (getvar 'ctab))
	   (setq ntab (if (vl-string-search "\\U+2714" ctab)
			(substr ctab 1 (vl-string-search "\\U+2714" ctab))
			(strcat ctab "\\U+2714")))
	   (or (not (vl-position ntab (layoutlist)))
	       (alert (strcat "Error: Already in use.")))
	   )
    (vla-put-name (vla-item (vla-get-layouts (vla-get-ActiveDocument (vlax-get-acad-object))) ctab) ntab))
  (princ)
  )
&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Mar 2021 17:58:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190084#M81372</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-03-26T17:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190089#M81373</link>
      <description>&lt;P&gt;Awesome so how do I use these finished ones?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 18:00:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190089#M81373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-26T18:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190095#M81374</link>
      <description>&lt;P&gt;Try it. Then again. And repeat. And once more. And again. It never gets old.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 18:04:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190095#M81374</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-03-26T18:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190112#M81375</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;... Also how do I accept two posts as 2 solutions?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just keep pushing the buttons as you like.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 18:07:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190112#M81375</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-03-26T18:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190148#M81376</link>
      <description>&lt;P&gt;These all work awesome!! Thank you so much. I've marked all 3 as solutions.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 18:17:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190148#M81376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-26T18:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: LISP to help with keeping track if completed drawings?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190203#M81377</link>
      <description>&lt;P&gt;Just a few notes in case you would also add the ticks manually or rename tabs.&lt;/P&gt;
&lt;P&gt;It presumes that the tick is the very last character.&lt;/P&gt;
&lt;P&gt;Also, note there are 2 different ticks, code 2713 and 2714. It works with the latter ones only.&lt;/P&gt;
&lt;P&gt;Not like it could not be enhanced to accommodate the above but it just makes it more complicated.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 18:34:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/lisp-to-help-with-keeping-track-if-completed-drawings/m-p/10190203#M81377</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2021-03-26T18:34:20Z</dc:date>
    </item>
  </channel>
</rss>

