<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>CAD Forum discussion (EN) : Wildcard &amp; Lisp</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : Wildcard &amp; Lisp]]></description>
  <pubDate>Sun, 24 May 2026 15:07:20 +0000</pubDate>
  <lastBuildDate>Mon, 18 Aug 2014 15:31:10 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum_en/RSS_post_feed.asp?TID=10624</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD Forum discussion (EN)]]></title>
   <url>https://www.cadforum.cz/forum_en/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum_en/</link>
  </image>
  <item>
   <title><![CDATA[Wildcard &amp; Lisp :   mfkozlow wrote:Quick question...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27908&amp;title=wildcard-lisp#27908</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=353260">Kent Cooper</a><br /><strong>Subject:</strong> 10624<br /><strong>Posted:</strong> 18.Aug.2014 at 15:31<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mfkozlow" alt="Originally posted by mfkozlow" style="vertical-align: text-bottom;" /> <strong>mfkozlow wrote:</strong><br /><br /><FONT size=2>Quick question about your code Kent... where would I insert </FONT><BR><BR><table width="99%"><tr><td><pre class="BBcode"><BR>(command "script" "g:/_001_auto_bom/SCRIPTS/SHT_003_ATT_EXT.scr")<BR></pre></td></tr></table><BR><FONT size=2><BR>if I want it to run on the E003.dwg that was just opened?<BR>....<BR></FONT></td></tr></table> <DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I don't think you can do it that way, because I don't think a Lisp routine can "survive" moving into a different drawing from the one it was called in.&nbsp; I believe you need to incorporate that back at the batch-file level somehow, though it's not something I've done, so others would be better qualified to answer that.</DIV>]]>
   </description>
   <pubDate>Mon, 18 Aug 2014 15:31:10 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27908&amp;title=wildcard-lisp#27908</guid>
  </item> 
  <item>
   <title><![CDATA[Wildcard &amp; Lisp : Quick question about your code...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27891&amp;title=wildcard-lisp#27891</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=486490">mfkozlow</a><br /><strong>Subject:</strong> 10624<br /><strong>Posted:</strong> 15.Aug.2014 at 17:05<br /><br /><font size="2">Quick question about your code Kent... where would I insert </font><br><br><table width="99%"><tr><td><pre class="BBcode"><br>(command "script" "g:/_001_auto_bom/SCRIPTS/SHT_003_ATT_EXT.scr")<br></pre></td></tr></table><br><font size="2"><br>if I want it to run on the E003.dwg that was just opened?<br><br>Right now I use a batch file to open ACAD and drawing E002 and automatically run a script on it. In the script I call the lisp that you provided. After E003 is opened, however, I would like to run another script. Thanks.<br></font>]]>
   </description>
   <pubDate>Fri, 15 Aug 2014 17:05:58 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27891&amp;title=wildcard-lisp#27891</guid>
  </item> 
  <item>
   <title><![CDATA[Wildcard &amp; Lisp : It worked like a charm! The XXXX...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27890&amp;title=wildcard-lisp#27890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=486490">mfkozlow</a><br /><strong>Subject:</strong> 10624<br /><strong>Posted:</strong> 15.Aug.2014 at 16:05<br /><br /><font size="2">It worked like a charm! The XXXX variable is 5 characters long, but I made the necessary changes. Thanks a million.</font><br>]]>
   </description>
   <pubDate>Fri, 15 Aug 2014 16:05:12 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27890&amp;title=wildcard-lisp#27890</guid>
  </item> 
  <item>
   <title><![CDATA[Wildcard &amp; Lisp : Try this variant of a routine...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27889&amp;title=wildcard-lisp#27889</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=353260">Kent Cooper</a><br /><strong>Subject:</strong> 10624<br /><strong>Posted:</strong> 15.Aug.2014 at 15:39<br /><br /><P>Try this variant of a routine I&nbsp;built some time ago.&nbsp; It was to open a drawing in the current drawing's folder, but with a dialog box to select<EM> which</EM> one, rather than always a fixed drawing name ending -- I've removed the (getfiled) part and built&nbsp;the file name with&nbsp;your constant ending.</P><DIV>(vl-load-com); &#091;if needed&#093;</DIV><DIV>(vla-activate<BR>&nbsp; (vla-open<BR>&nbsp;&nbsp;&nbsp; (vla-get-documents<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (vlax-get-acad-object)<BR>&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp; (strcat (getvar 'dwgprefix) (substr (getvar 'dwgname) 1 4) "E003.dwg")<BR>&nbsp; )<BR>)</DIV><DIV>&nbsp;</DIV><DIV>That assumes that the XXXXE003.dwg exists, and that the XXXX variable part is always four characters long.&nbsp; If not, those possibilities can be accounted for.</DIV>]]>
   </description>
   <pubDate>Fri, 15 Aug 2014 15:39:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27889&amp;title=wildcard-lisp#27889</guid>
  </item> 
  <item>
   <title><![CDATA[Wildcard &amp; Lisp : I have tried using this lisp: (defun...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27888&amp;title=wildcard-lisp#27888</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=486490">mfkozlow</a><br /><strong>Subject:</strong> 10624<br /><strong>Posted:</strong> 15.Aug.2014 at 15:22<br /><br /><font size="2">I have tried using this lisp:</font><br><br><table width="99%"><tr><td><pre class="BBcode"><br>(defun C:OPEN_003()<br>&nbsp;&nbsp;&nbsp; (open "*E003.dwg" "r")<br>)&nbsp;&nbsp;&nbsp; <br></pre></td></tr></table><br><br><font size="2">It's a start, but when I run the command it returns nil.</font>]]>
   </description>
   <pubDate>Fri, 15 Aug 2014 15:22:09 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27888&amp;title=wildcard-lisp#27888</guid>
  </item> 
  <item>
   <title><![CDATA[Wildcard &amp; Lisp : Hello everyone!I need a lisp that...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27887&amp;title=wildcard-lisp#27887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=486490">mfkozlow</a><br /><strong>Subject:</strong> 10624<br /><strong>Posted:</strong> 14.Aug.2014 at 17:17<br /><br /><font size="2">Hello everyone!<br><br>I need a lisp that will open a file in the directory that the current file (the one that is currently open in ACAD) is in. On top of that, I need to use a wild card.<br><br>For example, I have a file by the name of XXXXE001.DWG open in ACAD. I need a lisp that will search in the current directory that XXXXE001.DWG is in and open a file that is called XXXXE003.DWG. The "XXXX" will always change, but the ending of the file will not. I need a wildcard that will search for "E003".<br><br>Any information is valuable! Please share anything you may know. Thank you!!<br></font>]]>
   </description>
   <pubDate>Thu, 14 Aug 2014 17:17:53 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10624&amp;PID=27887&amp;title=wildcard-lisp#27887</guid>
  </item> 
 </channel>
</rss>