<?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) : Condition PROGN statement help</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : Condition PROGN statement help]]></description>
  <pubDate>Sun, 19 Apr 2026 10:20:54 +0000</pubDate>
  <lastBuildDate>Mon, 31 Jan 2011 20:08:40 +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=5233</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[Condition PROGN statement help : Can someone please look at this...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5233&amp;PID=12989&amp;title=condition-progn-statement-help#12989</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=164791">kameron1967</a><br /><strong>Subject:</strong> 5233<br /><strong>Posted:</strong> 31.Jan.2011 at 20:08<br /><br />Can someone please look at this and help me do a condition ?<DIV>&nbsp;</DIV><DIV>Basically, I want the program to decide if it's border1(zi3042sht) OR border #2 (i3042sht) and perform actions depending on which border it find.&nbsp; Thank you, thank you, thank you!</DIV><DIV>&nbsp;</DIV><DIV>&#091;code&#093;(if (setq ss (ssget "x" (list (cons 0 "INSERT") (cons 2 "zi3042sht"))))<BR>&nbsp;&nbsp;&nbsp; (PROGN<BR>(vla-put-Name<BR>&nbsp; (vla-item<BR>&nbsp;&nbsp;&nbsp; (vla-get-Blocks<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (vla-get-ActiveDocument<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (vlax-get-acad-object)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp; )<BR>&nbsp; "zi3042sht") ;;;&lt;-- old block name<BR>"abcde") ;;;&lt; -- new block name<BR>)<BR>(if (setq B3Set (ssget "x" '((0 . "INSERT")(2 . "abcde"))))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (progn<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq ename1 (ssname B3Set 0))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq InsPt (cdr (assoc 10 (entget ename1))))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (command "._move" "all" "" InsPt '(0.0 0.0))<BR>;&nbsp;(command "._move" "all" "" <a href="mailto:0,0%20@2.06155%3c194" target="_blank" rel="nofollow">"0,0" "@2.06155&lt;194</A>")<BR>)<BR>)<BR>&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp; (PROGN<BR>&nbsp; (if (setq ss (ssget "x" (list (cons 0 "INSERT") (cons 2 "i3042sht"))))<BR>(vla-put-Name<BR>&nbsp; (vla-item<BR>&nbsp;&nbsp;&nbsp; (vla-get-Blocks<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (vla-get-ActiveDocument<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (vlax-get-acad-object)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<BR>&nbsp;&nbsp;&nbsp; )<BR>&nbsp; "i3042sht") ;;;&lt;-- old block name<BR>"abcde") ;;;&lt; -- new block name<BR>)</DIV><DIV>(if (setq B3Set (ssget "x" '((0 . "INSERT")(2 . "abcde"))))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (progn<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq ename1 (ssname B3Set 0))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (setq InsPt (cdr (assoc 10 (entget ename1))))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (command "._move" "all" "" InsPt '(0.0 0.0))<BR>&nbsp;(command "._move" "all" "" <a href="mailto:0,0%20@2.06155%3c194" target="_blank" rel="nofollow">"0,0" "@2.06155&lt;194</A>")<BR>)<BR>)<BR>&nbsp;&nbsp;&nbsp; )<BR>);end of IF</DIV><DIV>&#091;\code}</DIV>]]>
   </description>
   <pubDate>Mon, 31 Jan 2011 20:08:40 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=5233&amp;PID=12989&amp;title=condition-progn-statement-help#12989</guid>
  </item> 
 </channel>
</rss>