<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[吴所不及]]></title> 
    <link>http://wjm.name/</link> 
    <description><![CDATA[在这里有吴所不及的事... ...]]></description> 
    <language>zh-cn</language> 
    <copyright><![CDATA[Copyright 2010, 吴所不及]]></copyright> 
    <webMaster><![CDATA[wjm.com@gmail.com (wjm)]]></webMaster> 
    <generator>LBS v2046</generator> 
    <pubDate>Tue, 07 Sep 2010 15:35:01 +0800</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[[结构软件]柱子填充的autolisp源代码]]></title> 
      <link><![CDATA[http://wjm.name/article.asp?id=290]]></link> 
      <category><![CDATA[AutoLisp]]></category> 
      <author><![CDATA[wujimmy <null@null.com>]]></author> 
      <pubDate>Sat, 12 May 2007 07:27:46 +0800</pubDate> 
      <description><![CDATA[作者wujimmy  出自www.wujimmy.com  专贴请注明出处.<br /><br />对于TSSD的填充功能不大好用,存在好多的限制,<br />比如要求是柱图层,要求是随层的颜色.<br /><br />使用方法我就不说了.<br />命令mybh<div class="quote"><div class="quote-title">Quote <u></u></div><div class="quote-content">(Defun c:mybh (/ e e1 la ps si smx ss ssh)<br /><br />  (command &quot;_undo&quot; &quot;be&quot; &quot;&quot;)<br />  (command &quot;layer&quot; &quot;m&quot; &quot;HATCH&quot; &quot;&quot;)<br />  (if (and &nbsp;&nbsp;   <br />&nbsp;&nbsp;   (princ &quot;\n选择要填实的柱子&lt;退出&gt;：&quot;)<br />&nbsp;&nbsp;   (setq<br />&nbsp;&nbsp;     ss&nbsp;&nbsp;(ssget (list  &#39;(0 . &quot;lwpolyline&quot;) ))<br />&nbsp;&nbsp;   )<br />      )<br />    (progn <br />&nbsp;&nbsp;   (setq smx (sslength ss)<br />&nbsp;&nbsp;&nbsp;&nbsp; si  0</div></div>]]></description>
      <wfw:commentRss><![CDATA[http://wjm.name/feed.asp?q=comment&id=290]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[给DWG文件减肥]]></title> 
      <link><![CDATA[http://wjm.name/article.asp?id=283]]></link> 
      <category><![CDATA[AutoLisp]]></category> 
      <author><![CDATA[wujimmy <null@null.com>]]></author> 
      <pubDate>Mon, 05 Mar 2007 23:44:23 +0800</pubDate> 
      <description><![CDATA[作者wujimmy  出自www.wujimmy.com  专贴请注明出处.<br /><br />DWG文件是越画越大.真不知道是为什么.明明的空的文件,也会有好几M.<br />经过一些研究发现原来是&quot;图层过滤信息&quot;占了很大的空间.<br />于是动手写了这个程序(其实也是网上找来的):<br /><br />当你发现你的文件PU完了,还是很大的时候,<br />当你发现CAD之间拷贝复制很慢的时候,<br />说明垃圾信息已经很多了,是到该清理的时候了.<br />该出手时就出手.<br />可以试试下面这个程序.<div class="quote"><div class="quote-title">Quote <u></u></div><div class="quote-content">(defun C:mypu ()<br />  (vl-Load-Com)<br />  (vl-Catch-All-Apply<br />    &#39;(lambda ()<br />       (vla-Remove<br />&nbsp;&nbsp; (vla-GetExtensionDictionary<br />&nbsp;&nbsp;   (vla-Get-Layers<br />&nbsp;&nbsp;     (vla-Get-ActiveDocument</div></div>]]></description>
      <wfw:commentRss><![CDATA[http://wjm.name/feed.asp?q=comment&id=283]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[批量数字加减运算(用于改批量改标高)]]></title> 
      <link><![CDATA[http://wjm.name/article.asp?id=281]]></link> 
      <category><![CDATA[AutoLisp]]></category> 
      <author><![CDATA[炫之贝妈 <null@null.com>]]></author> 
      <pubDate>Sun, 28 Jan 2007 00:28:51 +0800</pubDate> 
      <description><![CDATA[<div class="quote"><div class="quote-title">Quote <u></u></div><div class="quote-content">(defun convert_string_to_real_lst (str  / lst n s1 cha )<br />  (setq&nbsp;&nbsp;s1 &quot;&quot;<br />&nbsp;&nbsp;n  0<br />  )<br />  (cond&nbsp;&nbsp;((wcmatch str &quot;*-*&quot;) (setq 分隔符 &quot;-&quot;))<br />&nbsp;&nbsp;((wcmatch str &quot;*=*&quot;) (setq 分隔符 &quot;=&quot;))<br />&nbsp;&nbsp;((wcmatch str &quot;*~*&quot;) (setq 分隔符 &quot;~&quot;))<br />&nbsp;&nbsp;((wcmatch str &quot;*x*&quot;) (setq 分隔符 &quot;x&quot;))<br />&nbsp;&nbsp;(T (setq 分隔符 &quot;-&quot;))<br />  )<br />  (repeat (strlen str)<br />    (setq cha (substr str (setq n (1+ n)) 1))<br />    (if&nbsp;&nbsp;(= 分隔符 cha)<br />      (setq lst&nbsp;&nbsp;(append lst (list (atof s1)))</div></div>]]></description>
      <wfw:commentRss><![CDATA[http://wjm.name/feed.asp?q=comment&id=281]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[集中标注处理序]]></title> 
      <link><![CDATA[http://wjm.name/article.asp?id=266]]></link> 
      <category><![CDATA[AutoLisp]]></category> 
      <author><![CDATA[wujimmy <null@null.com>]]></author> 
      <pubDate>Tue, 14 Nov 2006 07:28:44 +0800</pubDate> 
      <description><![CDATA[;;集中标注处理序<br />;;显示特殊的标注,比如有标注数值与长度差别比较多的.比例不是多少的.==<br />(defun c:dimcheck()<br />   (setq wjm_dc_check_diet (getint &quot;\n输入误差值:&quot;))<br />   (princ &quot;\n选择标注:&quot;)<br />   (setq ss (ssget (list (cons 0 &quot;DIMENSION&quot;))))<br />  <br />   (if (ssget &quot;X&quot; (list (cons 8 &quot;wujimmy_dc_Error&quot;)))<br />&nbsp;&nbsp;(progn&nbsp;&nbsp;  <br />&nbsp;&nbsp;  (command &quot;erase&quot; &quot;P&quot; &quot;&quot;)&nbsp;&nbsp;  <br />&nbsp;&nbsp;)<br />      )<br />   (setq errornum 0)<br />   (while (and ss (setq en (ssname ss 0)))<br />     (ssdel en ss )(setq ent (entget en))<br />]]></description>
      <wfw:commentRss><![CDATA[http://wjm.name/feed.asp?q=comment&id=266]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[任意版本CAD均可加载的arx文件的研究]]></title> 
      <link><![CDATA[http://wjm.name/article.asp?id=263]]></link> 
      <category><![CDATA[AutoLisp]]></category> 
      <author><![CDATA[wujimmy <null@null.com>]]></author> 
      <pubDate>Sun, 05 Nov 2006 17:11:16 +0800</pubDate> 
      <description><![CDATA[通过GetProcAddress,LoadLibrary这两个函数来获取函数的地址,<br />对一下简单的程序,就可以实现不用重新编辑就可以在不同的CAD版本中加载的ARX文件了.<br /><br />但是目前还是碰到一些问题,就是这个函数:<br />acrxGetApiVersion,无法获取其代码.<br />因为这个函数通过以上的方法是无法获取的.即使是loadlibrary别的arx文件也是无法获取的到的.<br /><br />而自己随便定义一个这样的函数也不得,真不知道这个函数到底是完成了什么功能.而CAD又是如何识别出不同的版本来的呢???<br /><br />我试过了以下几个办法来获取这个函数的办法:<br />1.<div class="quote"><div class="quote-title">Quote <u></u></div><div class="quote-content">自己定义一个这样的函数,可以CAD好像看都不看一下,就说是版本不对.<br />void* acrxGetApiVersion()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;char szHello[] = &quot;Hello, world!&quot;; </div></div>]]></description>
      <wfw:commentRss><![CDATA[http://wjm.name/feed.asp?q=comment&id=263]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[我的自定义CAD命令]]></title> 
      <link><![CDATA[http://wjm.name/article.asp?id=260]]></link> 
      <category><![CDATA[AutoLisp]]></category> 
      <author><![CDATA[wujimmy <null@null.com>]]></author> 
      <pubDate>Sun, 29 Oct 2006 23:11:33 +0800</pubDate> 
      <description><![CDATA[my cad command.lsp<div class="quote"><div class="quote-title">Quote <u></u></div><div class="quote-content">(setq wjm_offset_dist_list (list 100))<br />(defun c:offset()<br />  (princ &quot;输入或选择偏移距离:&quot;)<br />  (foreach offset_dist wjm_offset_dist_list<br />    (progn<br />      (princ offset_dist)<br />     )<br />    )<br />  ()<br />  )<sup> </sup></div></div>]]></description>
      <wfw:commentRss><![CDATA[http://wjm.name/feed.asp?q=comment&id=260]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[文字替换工具.替换完了窗口自动跳回来.]]></title> 
      <link><![CDATA[http://wjm.name/article.asp?id=259]]></link> 
      <category><![CDATA[AutoLisp]]></category> 
      <author><![CDATA[wujimmy <null@null.com>]]></author> 
      <pubDate>Sun, 29 Oct 2006 23:09:37 +0800</pubDate> 
      <description><![CDATA[(defun c:rt()<br />  ;;保存窗口.<br />  (setq wjm_old_viewsize (getvar &quot;viewsize&quot;))<br />  (setq wjm_old_viewctr (getvar &quot;VIEWCTR&quot;))  <br />  <br />  (princ &quot;\n请选择要被替换的文字：&quot;)<br />  (setq text1 (single_select (list (cons 0 &quot;text&quot;)) nil))<br />  <br />  (redraw text1 3)<br />  (setq el1 (entget text1))<br />  (setq txt1 (cdr (assoc 1 el1)))<br /><br />  (princ &quot;\n请选择新的文字：&quot;)<br />  (setq text2 (single_select (list (cons 0 &quot;text&quot;)) nil))<br />  <br />  (setq el2 (entget text2))<br />]]></description>
      <wfw:commentRss><![CDATA[http://wjm.name/feed.asp?q=comment&id=259]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[CAD拷贝,移动时的动态显示实现方式猜想]]></title> 
      <link><![CDATA[http://wjm.name/article.asp?id=249]]></link> 
      <category><![CDATA[AutoLisp]]></category> 
      <author><![CDATA[wujimmy <null@null.com>]]></author> 
      <pubDate>Sat, 23 Sep 2006 11:04:24 +0800</pubDate> 
      <description><![CDATA[CAD的几个命令,可以在执行命令的时候,动态显示.<br />可以实时看到显示效果,实在是众编程者所要的那种效果.<br /><br />这种效果,用OBJECTARX来实现是比较简单的.<br /><br />不过用AUTOLISP实现起来就有点吃力了.<br />因为要不断的entmod实体,实在是比较慢,而且会卡.一闪一闪的.<br /><br />今天发现一个现像,我的用移动命令的时候,把东西移动到标注上,不小心,死了.<br />结果CAD死了.我点了保存文件(2002可以保护为新的文件,所以就保存了).<br /><br />又得重新开CAD,打开原来的图,看看,还差好多.想想还是修复一下算了.<br />还好能用,只查出了一个错误就好了.<br /><br />什么,有一个错误,什么错误?速速报来!<div class="quote"><div class="quote-title">Quote <u></u></div><div class="quote-content">发现无效的块名“”。<br />改为“AUDIT_I_060923095030-0”。</div></div>无效块?哪里来的块?莫非是.....<br />没错,就是那个命令COPY生成的,生成一半死掉了,还来不及删掉就被CAD保存下来了.<br />]]></description>
      <wfw:commentRss><![CDATA[http://wjm.name/feed.asp?q=comment&id=249]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[[新写的程序]选择部分图形隐藏或显示]]></title> 
      <link><![CDATA[http://wjm.name/article.asp?id=233]]></link> 
      <category><![CDATA[AutoLisp]]></category> 
      <author><![CDATA[wujimmy <null@null.com>]]></author> 
      <pubDate>Thu, 07 Sep 2006 13:05:34 +0800</pubDate> 
      <description><![CDATA[使用方法:<br /> 1.命令ee.<br />  2.输入编号,为数字,用这个数字来开关显示所选的图形.<br />   3.选择图形.<br />输入命令:(刚刚你在第2步里面所输入的数字)则隐藏图形.<br />两次输入命令::(刚刚你在第2步里面所输入的数字)则显示图形.<br /><br />把以下文件保存为 .lsp文件,用CAD加载即可食用,无需冷藏!.<div class="quote"><div class="quote-title">Quote <u></u></div><div class="quote-content">;隐藏或显示部分图形<br />;作者wujimmy  来自:<a href="http://www.wujimmy.com" title="http://www.wujimmy.com" target="_blank">http://www.wujimmy.com</a><br />(setq wjm_hide_lst nil)<br />(defun c:ee()<br />  (setq index_num (getint &quot;图形组编号:&quot;))<br />  (princ &quot;\n选择要显示或隐藏的图形:&quot;)<br />  (setq es (ssget))<br />  (if es<br />    (progn<br />  <br />  (if (assoc index_num wjm_hide_lst)</div></div>]]></description>
      <wfw:commentRss><![CDATA[http://wjm.name/feed.asp?q=comment&id=233]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Autolisp速度研究两则]]></title> 
      <link><![CDATA[http://wjm.name/article.asp?id=207]]></link> 
      <category><![CDATA[AutoLisp]]></category> 
      <author><![CDATA[wujimmy <null@null.com>]]></author> 
      <pubDate>Tue, 15 Aug 2006 20:09:01 +0800</pubDate> 
      <description><![CDATA[用来做一个造价比较软件时发现两个问题<br />  1.一个是函数CAL运算速度比较慢,虽然这个函数用来求表达式比较直观,但是速度有比较大的降低,所以后来还是全改过来了.<br /><br />下面是一个例子,分号后面的是原来的CAL函数计算的.<div class="quote"><div class="quote-title">Quote <u></u></div><div class="quote-content">;;;由梁截面求钢筋面积.<br />;;;(wjmfun_beam_area 300 600 300 14.3 360)<br />(defun wjmfun_beam_area&nbsp;&nbsp;(wjm_b wjm_h wjm_m wjm_fc wjm_fy)<br />  (setq as (+ 30 12.5))<br />  (setq wjm_m (* wjm_m 1000000))<br />  <br />;;;  (setq as_mid (cal &quot;wjm_m/wjm_fc/wjm_b/(wjm_h-as)/(wjm_h-as)&quot;))<br />;;;  (if (&lt; as_mid 0.5)</div></div>]]></description>
      <wfw:commentRss><![CDATA[http://wjm.name/feed.asp?q=comment&id=207]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
