<?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) : scale block</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : CAD - general : scale block]]></description>
  <pubDate>Sun, 05 Apr 2026 19:25:52 +0000</pubDate>
  <lastBuildDate>Sun, 07 Dec 2014 18:49:55 +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=10838</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[scale block : Why do I need a lisp routine to...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10838&amp;PID=28632&amp;title=scale-block#28632</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=165260">John Connor</a><br /><strong>Subject:</strong> 10838<br /><strong>Posted:</strong> 07.Dec.2014 at 18:49<br /><br />Why do I need a lisp routine to scale a block?&nbsp; Invoke the SCALE command and select the block.&nbsp; What is the advantage of your lisp routine?<br><br>It would be helpful if you explained what your lisp routine is supposed to do and give a real world example of the routine in use.&nbsp; A video demonstration of the routine in action would be best.<br><span style="font-size:10px"><br /><br />Edited by John Connor - 08.Dec.2014 at 12:04</span>]]>
   </description>
   <pubDate>Sun, 07 Dec 2014 18:49:55 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10838&amp;PID=28632&amp;title=scale-block#28632</guid>
  </item> 
  <item>
   <title><![CDATA[scale block : He he,I knowyou are a master,is...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10838&amp;PID=28627&amp;title=scale-block#28627</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=520799">lijinsong</a><br /><strong>Subject:</strong> 10838<br /><strong>Posted:</strong> 07.Dec.2014 at 15:34<br /><br /><span left-pos="0|9" right-pos="0|9" space="" ="" style="color: rgb51, 51, 51; font-family: arial; font-size: 14px; line-height: 22px;">He he,</span><span left-pos="9|9" right-pos="9|9" space="0| " ="" style="color: rgb51, 51, 51; font-family: arial; font-size: 14px; line-height: 22px;">&nbsp;I know</span><span left-pos="18|18" right-pos="18|18" space="0| " ="" style="color: rgb51, 51, 51; font-family: arial; font-size: 14px; line-height: 22px;">&nbsp;you are a master,</span><span left-pos="36|9" right-pos="36|9" space="0| " style="color: rgb51, 51, 51; font-family: arial; font-size: 14px; line-height: 22px;">&nbsp;is also a</span><span left-pos="45|9" right-pos="45|9" space="0| " style="color: rgb51, 51, 51; font-family: arial; font-size: 14px; line-height: 22px;">&nbsp;chinese too</span><span left-pos="54|3" right-pos="54|3" space="" style="color: rgb51, 51, 51; font-family: arial; font-size: 14px; line-height: 22px;">.</span><span left-pos="57|18" right-pos="57|18" space="0| " style="color: rgb51, 51, 51; font-family: arial; font-size: 14px; line-height: 22px;">&nbsp;Don't be so serious</span><span left-pos="75|3" right-pos="75|3" space="" style="color: rgb51, 51, 51; font-family: arial; font-size: 14px; line-height: 22px;">,&nbsp;</span><span style="font-size: 10px; line-height: 1.4;">Like watching a movie, You think it plays good, then it is good. &nbsp;You think it plays bad,then it is bad.&nbsp;</span><div><span style="font-size: 10px; line-height: 1.4;"><br></span></div>]]>
   </description>
   <pubDate>Sun, 07 Dec 2014 15:34:05 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10838&amp;PID=28627&amp;title=scale-block#28627</guid>
  </item> 
  <item>
   <title><![CDATA[scale block : So what&amp;#039;s all this garbage?I...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10838&amp;PID=28624&amp;title=scale-block#28624</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=165260">John Connor</a><br /><strong>Subject:</strong> 10838<br /><strong>Posted:</strong> 07.Dec.2014 at 13:20<br /><br />So what's all this garbage?<br><br>I would not run any of your code until a full explanation of each routine is added to every post you've made.&nbsp; <br>]]>
   </description>
   <pubDate>Sun, 07 Dec 2014 13:20:02 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10838&amp;PID=28624&amp;title=scale-block#28624</guid>
  </item> 
  <item>
   <title><![CDATA[scale block : ; 1 specify base point scaling.(defun...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10838&amp;PID=28623&amp;title=scale-block#28623</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=520799">lijinsong</a><br /><strong>Subject:</strong> 10838<br /><strong>Posted:</strong> 07.Dec.2014 at 10:52<br /><br />; 1 <span style="font-size: 10px; line-height: 1.4;">&nbsp;specify base point scaling.</span><div>(defun c:tt()</div><div>&nbsp;(princ "\n Choose the arrow block")</div><div>&nbsp;(setq en(entsel))</div><div>&nbsp;(if en(progn</div><div>&nbsp;(setq enn(car en)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enpt(getpoint" input scaling point")&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sfx(getreal" input scaling coefficient: ") )</div><div>&nbsp;(vla-getboundingbox (vlax-ename-&gt;vla-object enn) 'enpt1 'enpt2)&nbsp;</div><div>&nbsp;(setq enpt1 (vlax-safearray-&gt;list enpt1)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;enpt2 (vlax-safearray-&gt;list enpt2)</div><div>&nbsp; &nbsp; &nbsp; &nbsp;enmp &nbsp;(mapcar '(lambda(x y)(/(+ x y)2))enpt1 enpt2)</div><div>&nbsp; &nbsp; &nbsp; &nbsp;endi &nbsp;(distance enpt enmp)</div><div>&nbsp; &nbsp; &nbsp; &nbsp;enan &nbsp;(angle enpt enmp)</div><div>&nbsp; &nbsp; &nbsp; &nbsp;szj &nbsp; (ssget)</div><div>&nbsp; &nbsp; &nbsp; &nbsp;l &nbsp; &nbsp; (sslength szj)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;n &nbsp; &nbsp; 0</div><div>&nbsp;)</div><div>&nbsp;(repeat l</div><div>&nbsp; (setq szjenn(ssname szj n))</div><div>&nbsp; (vla-getboundingbox (vlax-ename-&gt;vla-object szjenn) 'szjpt1 'szjpt2)&nbsp;</div><div>&nbsp; (setq szjpt1 (vlax-safearray-&gt;list szjpt1)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; szjpt2 (vlax-safearray-&gt;list szjpt2)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; szjmp &nbsp;(mapcar '(lambda(x y)(/(+ x y)2))szjpt1 szjpt2)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; szjpt &nbsp;(polar szjmp enan endi)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; n &nbsp; &nbsp; &nbsp;(1+ n ) &nbsp;</div><div>&nbsp; )</div><div>&nbsp; (vl-cmdf "scale" szjenn "" "non"szjpt sfx )</div><div>&nbsp;) ))</div><div><br></div><div><span style="font-size: 10px; line-height: 1.4;">;2scale same&nbsp;</span><span style="font-size: 10px; line-height: 1.4;">name of&nbsp;</span><span style="font-size: 10px; line-height: 1.4;">Block .</span></div><div><div><br></div><div>(defun c:tt()</div><div>&nbsp; (SETQ b1 (ENTSEL "\nPlease select the block: ")</div><div>&nbsp;i &nbsp;0&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; hh (getreal"Enter the new scaling coefficient: &nbsp;")</div><div>&nbsp; )&nbsp;</div><div>&nbsp; (IF b1 &nbsp; &nbsp;</div><div>&nbsp; &nbsp; (PROGN &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; (SETQ b2 (CAR b1) &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b3 (ENTGET b2) &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b4 (ASSOC 0 b3) &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b5 (CDR b4) &nbsp;</div><div>&nbsp; &nbsp; &nbsp; )</div><div>&nbsp; &nbsp; &nbsp;(IF (= b5 "INSERT") &nbsp;</div><div>&nbsp; &nbsp; &nbsp; (PROGN &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;(SETQ b6 (ASSOC 2 b3) &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;b7 (CDR b6) &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;b8 (SSGET (LIST b4 b6))&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;b9 (SSLENGTH b8)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;)</div><div>&nbsp; &nbsp; &nbsp; &nbsp;(alert (strcat b7 " &nbsp;* &nbsp;" (itoa b9)))</div><div>&nbsp; &nbsp; &nbsp; ) &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; (PRINC "\nObject is not a block!")&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ) &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ) &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; (PRINC "\nNo selection block!") &nbsp;</div><div>&nbsp; ) &nbsp; &nbsp;</div><div>&nbsp; (repeat &nbsp;b9</div><div>&nbsp; &nbsp; &nbsp;(setq bb(ssname b8 i) instp(cdr(assoc 10 (entget bb))))</div><div>&nbsp; &nbsp; &nbsp;(command "scale" bb "" "non"instp hh )</div><div>&nbsp; &nbsp; &nbsp;(setq i(1+ i))</div><div>&nbsp; &nbsp;)</div><div>&nbsp; (PRINC)</div><div>)</div></div><div><br></div><div><div>3 â€śPolygon single line text centerâ€ť &nbsp;-i do not know why some dwg use it will <font color="#333333" face="arial" size="4"><span style="line-height: 22px;">failure.</span></font></div><div>(defun C:tt()</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp; (setq ss &nbsp;(ssget ":E:S" ) &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; en &nbsp;(ssname ss 0 ) &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vo &nbsp;(vlax-ename-&gt;vla-object en)</div><div>&nbsp; &nbsp; )</div><div>&nbsp; &nbsp; (vlax-invoke-method vo 'GetBoundingBox &nbsp;'MinPoint 'MaxPoint &nbsp;)&nbsp;</div><div>&nbsp; &nbsp; (setq p1 &nbsp;(vlax-safearray-&gt;list &nbsp;MinPoint)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; P2 &nbsp;(vlax-safearray-&gt;list &nbsp;MaxPoint )</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mp &nbsp;(mapcar'(lambda(x y)(/(+ x y)2))p1 p2)</div><div>&nbsp; &nbsp; )</div><div>&nbsp; &nbsp; (command "-boundary" "non"p1 "" )</div><div>&nbsp; &nbsp; (setq PL (entlast) &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vo(vlax-ename-&gt;vla-object PL)</div><div>&nbsp; &nbsp; )</div><div>&nbsp; &nbsp; (vlax-invoke-method vo 'GetBoundingBox 'MinPoint 'MaxPoint &nbsp;)</div><div>&nbsp; &nbsp; (setq &nbsp;p1(vlax-safearray-&gt;list &nbsp;MinPoint)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;P2(vlax-safearray-&gt;list &nbsp;MaxPoint)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mpL (mapcar'(lambda(x y)(/(+ x y)2))p1 p2)</div><div>&nbsp; &nbsp; )</div><div>&nbsp; &nbsp; (command "_move" ss"" "non"mp "non"mpL)</div><div>)</div></div><div><br></div><div><img src="uploads/520799/cccc.jpg" height="210" width="428" border="0" /><br></div><div><img src="uploads/520799/ccc.jpg" height="210" width="428" border="0" /><br></div>]]>
   </description>
   <pubDate>Sun, 07 Dec 2014 10:52:02 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=10838&amp;PID=28623&amp;title=scale-block#28623</guid>
  </item> 
 </channel>
</rss>