<?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 Routine to rename multiple drawings while publishing in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093203#M46856</link>
    <description>&lt;P&gt;No subscription, just a 27 euro lifetime license.&lt;/P&gt;
&lt;P&gt;Even if you exceed the monthly trial, the program continues to work without further restrictions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just try it and you'll see.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The productivity of working with multiple files cannot be compared with MS Explorer.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 12:29:55 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2022-04-08T12:29:55Z</dc:date>
    <item>
      <title>LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11091568#M46847</link>
      <description>&lt;P&gt;I'm looking for a LISP Routine that I could run that will do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Run the publish command&lt;/P&gt;&lt;P&gt;2. Allow me to select drawings to publish&lt;/P&gt;&lt;P&gt;3. Rename all to something I type in (i.e. a job number shared by each file)&lt;/P&gt;&lt;P&gt;4. Keep the Layout tab as a suffix (like normal)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end result would be publishing multiple sheets with the same prefix followed by the sheet number which is matched by the layout tab:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;21.0005.00 - E0.01&lt;/P&gt;&lt;P&gt;21.0005.00 - E1.01&lt;/P&gt;&lt;P&gt;21.0005.00 - E1.02&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My company has been doing this manually for some time now, and I am very new to figuring out the coding language.&amp;nbsp; Does anyone know if this can be done?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 20:53:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11091568#M46847</guid>
      <dc:creator>daniel.orourkeUWE7W</dc:creator>
      <dc:date>2022-04-07T20:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11091646#M46848</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10889131"&gt;@daniel.orourkeUWE7W&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could install &lt;A href="https://docs.microsoft.com/en-us/windows/powertoys/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;MS Powertoys&lt;/STRONG&gt; &lt;/A&gt;and use Power Rename for this.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ronjonp_0-1649367506261.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1052048i67E66EA994B23B5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ronjonp_0-1649367506261.png" alt="ronjonp_0-1649367506261.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also add a prefix to multiple files like so without installing anything:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ronjonp_0-1649367702955.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1052049i936D3EB42DB8B70D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ronjonp_0-1649367702955.png" alt="ronjonp_0-1649367702955.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 21:43:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11091646#M46848</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2022-04-07T21:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11091704#M46849</link>
      <description>&lt;P&gt;From what I understand, this bulk renaming feature will only work to remove or add similar text across several files, is that correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need something that can take this list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;21.0005.00 - E0.01 - E0.01&lt;/P&gt;&lt;P&gt;21.0005.00 - E1.01 - E1.01&lt;/P&gt;&lt;P&gt;21.0005.00 - E2.01A-B - E2.01A&lt;/P&gt;&lt;P&gt;21.0005.00 -&amp;nbsp;E2.01A-B - E2.01B&lt;/P&gt;&lt;P&gt;21.0005.00 - E2.02 - E2.02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Into this list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;21.0005.00 - E0.01&lt;/P&gt;&lt;P&gt;21.0005.00 - E1.01&lt;/P&gt;&lt;P&gt;21.0005.00 - E2.01A&lt;/P&gt;&lt;P&gt;21.0005.00 - E2.01B&lt;/P&gt;&lt;P&gt;21.0005.00 - E2.02&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It wouldn't be an issue, but sometimes the list is 100 files long lol.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 22:00:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11091704#M46849</guid>
      <dc:creator>daniel.orourkeUWE7W</dc:creator>
      <dc:date>2022-04-07T22:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11091782#M46850</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10889131"&gt;@daniel.orourkeUWE7W&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Give this a try. It will rename a directory of PDF's that match a file pattern of "* - *.pdf"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:foo (/ dir fls n p pf str)
  ;; RJP » 2022-04-07
  (cond	((and (setq p (getvar 'dwgprefix))
	      (setq dir (getfiled "\nPick a folder to process..." p "pdf" 16))
	      (setq fls (vl-directory-files (setq dir (vl-filename-directory dir)) "*-*.pdf" 1))
	      (/= "" (setq pf (getstring "\nEnter prefix: " t)))
	 )
	 (foreach f fls
	   (setq n (substr f (vl-string-position (ascii "-") f 0 t)))
	   (or (vl-file-rename (strcat dir "\\" f) (strcat dir "\\" (strcat pf (+ 2 n))))
	       (princ (strcat "\nERROR RENAMING: " f))
	   )
	 )
	)
  )
  (princ)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not a ton of error checking so test it out!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 13:01:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11091782#M46850</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2022-04-08T13:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11092396#M46851</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10889131"&gt;@daniel.orourkeUWE7W&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;1. Run the publish command&lt;/P&gt;
&lt;P&gt;2. Allow me to select drawings to publish&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. Rename all to something I type in (i.e. a job number shared by each file)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;4. Keep the Layout tab as a suffix (like normal)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What you're saying is by skipping item # 3 the result is just a pdf with the layout names YES?&lt;/P&gt;
&lt;P&gt;E0.01&lt;/P&gt;
&lt;P&gt;E1.01&lt;/P&gt;
&lt;P&gt;E1.02&lt;/P&gt;
&lt;P&gt;..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can piggy-back a lisp with publish, however it may require a bit of setup on your end.&lt;/P&gt;
&lt;P&gt;As an alternative, You can run a program to rename the resulting pdfs from publish similar to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&amp;nbsp;contribution and as originally suggested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun c:AddprefixToPDF ( /  prefix  path pdfs)
  (if (and
	(setq prefix (getstring "\nEnter prefix: "))
	(setq path (strcat (acet-ui-pickdir "Select Folder" (getvar 'dwgprefix))))
	(setq pdfs (vl-directory-files path "*.pdf" 1))
	(setq path (strcat path "\\"))
	)
    (foreach itm pdfs
      (cond
	((vl-string-search  prefix itm)		);&amp;lt;-- to avoid accidentally doubling up
	((vl-file-rename  (strcat path  itm)
	   	(strcat path prefix " - " itm))
	   )
	 )
      )      
    )
  (princ)  
  )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm pretty sure you are aware of the&amp;nbsp;&amp;nbsp;options in&amp;nbsp; publish command&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="pbejse_0-1649401746239.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1052206i82ABA3B31CE6141A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pbejse_0-1649401746239.png" alt="pbejse_0-1649401746239.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise use&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593837"&gt;@ronjonp&lt;/a&gt;&amp;nbsp;code to "correct" the existing pdfs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 07:11:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11092396#M46851</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2022-04-08T07:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11092472#M46852</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10889131"&gt;@daniel.orourkeUWE7W&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;From what I understand, this bulk renaming feature will only work to remove or add similar text across several files, is that correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need something that can take this list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;21.0005.00 - E0.01 - E0.01&lt;/P&gt;
&lt;P&gt;21.0005.00 - E1.01 - E1.01&lt;/P&gt;
&lt;P&gt;21.0005.00 - E2.01A-B - E2.01A&lt;/P&gt;
&lt;P&gt;21.0005.00 -&amp;nbsp;E2.01A-B - E2.01B&lt;/P&gt;
&lt;P&gt;21.0005.00 - E2.02 - E2.02&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Into this list:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;21.0005.00 - E0.01&lt;/P&gt;
&lt;P&gt;21.0005.00 - E1.01&lt;/P&gt;
&lt;P&gt;21.0005.00 - E2.01A&lt;/P&gt;
&lt;P&gt;21.0005.00 - E2.01B&lt;/P&gt;
&lt;P&gt;21.0005.00 - E2.02&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It wouldn't be an issue, but sometimes the list is 100 files long lol.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Easy peasy.&lt;/P&gt;
&lt;P&gt;Total/Windows Commander&amp;nbsp;&lt;A href="https://www.ghisler.com/" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;. Total must-have.&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="BeekeeCZ_1-1649403793444.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1052219i38F98172A8951519/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BeekeeCZ_1-1649403793444.png" alt="BeekeeCZ_1-1649403793444.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 07:47:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11092472#M46852</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-04-08T07:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093143#M46853</link>
      <description>&lt;P&gt;This program looks like it does exactly what I am looking for, but it seems to only be a month trial version that later requires a paid license to use.&amp;nbsp; I'd like to avoid additional subscriptions if at all possible.&amp;nbsp; Thanks for the suggestion, though!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:08:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093143#M46853</guid>
      <dc:creator>daniel.orourkeUWE7W</dc:creator>
      <dc:date>2022-04-08T12:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093164#M46854</link>
      <description>&lt;P&gt;This comes incredibly close to what I'm looking for!&amp;nbsp; Here are my results from running the script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original Files:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pre-FOO.png" style="width: 661px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1052403iDE59C1BC4C40035E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pre-FOO.png" alt="Pre-FOO.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Renamed Files:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Post-FOO.png" style="width: 629px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1052402iDED908411780DF46/image-size/large?v=v2&amp;amp;px=999" role="button" title="Post-FOO.png" alt="Post-FOO.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, an extra character is being generated at the end of the job number.&lt;/P&gt;&lt;P&gt;For this example, I need the list to read as shown here:&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="danielorourkeUWE7W_0-1649420160845.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1052406i9BF71D0A5DC7CABA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielorourkeUWE7W_0-1649420160845.png" alt="danielorourkeUWE7W_0-1649420160845.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:16:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093164#M46854</guid>
      <dc:creator>daniel.orourkeUWE7W</dc:creator>
      <dc:date>2022-04-08T12:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093189#M46855</link>
      <description>&lt;P&gt;My friend, you have done it!&amp;nbsp; Thank you so much!&amp;nbsp; I did not notice the check box earlier to not use the sheet title with file name.&amp;nbsp; After simply unchecking that box, I can just enter the job number with your script.&amp;nbsp; Perfect!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:25:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093189#M46855</guid>
      <dc:creator>daniel.orourkeUWE7W</dc:creator>
      <dc:date>2022-04-08T12:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093203#M46856</link>
      <description>&lt;P&gt;No subscription, just a 27 euro lifetime license.&lt;/P&gt;
&lt;P&gt;Even if you exceed the monthly trial, the program continues to work without further restrictions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just try it and you'll see.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The productivity of working with multiple files cannot be compared with MS Explorer.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:29:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093203#M46856</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-04-08T12:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093281#M46857</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10889131"&gt;@daniel.orourkeUWE7W&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This comes incredibly close to what I'm looking for!&amp;nbsp; Here are my results from running the script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Original Files:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pre-FOO.png" style="width: 661px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1052403iDE59C1BC4C40035E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pre-FOO.png" alt="Pre-FOO.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Renamed Files:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Post-FOO.png" style="width: 629px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1052402iDED908411780DF46/image-size/large?v=v2&amp;amp;px=999" role="button" title="Post-FOO.png" alt="Post-FOO.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, an extra character is being generated at the end of the job number.&lt;/P&gt;
&lt;P&gt;For this example, I need the list to read as shown here:&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="danielorourkeUWE7W_0-1649420160845.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1052406i9BF71D0A5DC7CABA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielorourkeUWE7W_0-1649420160845.png" alt="danielorourkeUWE7W_0-1649420160845.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Try my code above again. All I changed was:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;;; This
(strcat pf n)
;; to this
(strcat pf (+ 2 n))

;; Test example
(SETQ STR "22.0001.00 - E0.1-E0.1.pdf")
(strcat "22.0001.000 - " (substr STR (+ 2 (vl-string-position (ascii "-") STR 0 t))))
;; "22.0001.000 - E0.1.pdf" &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 13:06:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093281#M46857</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2022-04-08T13:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093318#M46858</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564264"&gt;@pbejse&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use the method below you don't need to check for an existing prefix as it will always strip everything before the last "-"&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(setq n (substr f (vl-string-position (ascii "-") f 0 t)))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 13:15:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093318#M46858</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2022-04-08T13:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: LISP Routine to rename multiple drawings while publishing</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093464#M46859</link>
      <description>&lt;P&gt;It is much easier and more convenient to type and immediately get the desired file name than to rename it later.&lt;/P&gt;&lt;P&gt;Is not it ?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 14:15:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-routine-to-rename-multiple-drawings-while-publishing/m-p/11093464#M46859</guid>
      <dc:creator>maratovich</dc:creator>
      <dc:date>2022-04-08T14:15:37Z</dc:date>
    </item>
  </channel>
</rss>

