<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1230671797584664602</id><updated>2011-07-07T13:11:00.176-07:00</updated><title type='text'>ခ်န္းခ်န္းေျပာတဲ့ AutoLisp</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chanlisp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://chanlisp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>***Chan Chan***            (Mg Mine)</name><uri>http://www.blogger.com/profile/06394161288725792551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_9YA_STSCWAU/R201JR9OsDI/AAAAAAAAAD0/iJAZRRi_RTo/S220/vVfSQj54OJsvoyDGTRw-hUbipzMBMER3ecftxL8HuojKhVjaozP2dUmoGPsM31Jb.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1230671797584664602.post-7288484377000262870</id><published>2009-08-19T08:20:00.001-07:00</published><updated>2009-08-19T08:31:47.952-07:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(255, 255, 153);"&gt;macro ေတြသံုးက်င့္ရိွလာျပီဆိုရင္ အသစ္ေရးစရာေတြ အမ်ားၾကီးေပၚလာပါတယ္... အဲ့ဒါအတြက္ အခိ်န္ယူျပီးၾကိဳတင္စဥ္းစား လိုက္ စမ္းၾကည့္လိုက္ ေရးလိုက္ လုပ္ႏိုင္ရင္ေတာ့ အင္မတန္ေကာင္းတာေပါ့ခင္ဗ်ာ.. အဲ့ဒိလိုမဟုတ္၀ူး သယ္ရင္း က ခ်န္းခ်န္းလိုပဲ အပ်င္းထူမယ္ဆိုရင္ေတာ့ သူမ်ားေရးျပီးသားေတြသာလိုက္ရွာေပေတာ့... အဲ့လိုရွာရင္လည္း အခ်ိန္မကုန္ေအာင္လို့ဒီေနရာကေနတခ်ိဳ့ကိုတင္ေပးထားပါ့မယ္.. တခ်ိဳ့လိုအပ္ေနတာေတြကိုလည္း ဘယ္လိုပံုစံမ်ိဳးေလးသံုးခ်င္တယ္ ဒီလိုေရးေနတယ္.. error ေတြနဲ့ ေတြ့ေနလို့ ေကာင္းေကာင္းမ run ဘူး ဆိုရင္ ေဆြးေႏြးအကူအညီေတာင္းႏိုင္ပါတယ္.... &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ေအာက္မွာေဖၚျပေပးထားတာကေတာ့ ဆရာဦးေရာဘတ္တင္ေအး ရဲ့ quick tool ထဲက macro ေလးေတြပဲျဖစ္ပါတယ္..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;code ေတြကို copy ကူးျပီး note pad မွာပဲျဖစ္ျဖစ္ ၊ visual lisp editor မွာျဖစ္ျဖစ္ ႏွစ္သက္ရာ အမည္ name.lsp  ေလးနဲ့ save လုပ္ျပီး သံုးႏုိင္ပါတယ္.. note pad သံုးရင္ေတာ့ .lsp လိုထည့္ေရးဖို့ မေမ့ပါနဲ့ေနာ္....အမ်ားအက်ိဳးရိွဖို့ ျဖန့္ေ၀တာျဖစ္လို့ (ဆရာဦးေရာဘတ္တင္ေအးကေတာ့စိတ္မဆိုးေလာက္၀ူးထင္ပါရဲ့......)&lt;/span&gt;&lt;blockquote style="color: rgb(255, 255, 153);"&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:aaa () (command "area") (princ))&lt;/span&gt;&lt;br /&gt;&lt;blockquote style="color: rgb(255, 255, 153);"&gt;&lt;div class="code"&gt;&lt;pre style="margin-top: 0pt; display: inline;"&gt;(defun c:aa () (command "-array") (princ))&lt;br /&gt;(defun c:bb () (command "box") (princ))&lt;br /&gt;(defun c:cy () (command "cylinder") (princ))&lt;br /&gt;(defun c:da () (command "dimaligned") (princ))&lt;br /&gt;(defun c:dde () (command "dimdec") (princ))&lt;br /&gt;(defun c:dds () (command "dimscale") (princ))&lt;br /&gt;(defun c:dg () (command "dimangular") (princ))&lt;br /&gt;(defun c:di () (command "dimdiameter") (princ))&lt;br /&gt;(defun c:do () (command "dimordinate") (princ))&lt;br /&gt;(defun c:dob () (command "dim" "oblique") (princ))&lt;br /&gt;(defun c:dov () (command "dimoverride") (princ))&lt;br /&gt;(defun c:dr () (command "dimradius") (princ))&lt;br /&gt;(defun c:dv () (command "dimlinear") (princ))&lt;br /&gt;(defun c:ee () (command "extend") (princ))&lt;br /&gt;(defun c:es () (command "edgesurf") (princ))&lt;br /&gt;(defun c:ll () (command "list") (princ))&lt;br /&gt;(defun c:mm () (command "mirror") (princ))&lt;br /&gt;(defun c:r () (command "rotate") (princ))&lt;br /&gt;(defun c:res () (command "revsurf") (princ))&lt;br /&gt;(defun c:rs () (command "rulesurf") (princ))&lt;br /&gt;(defun c:t () (command "trim") (princ))&lt;br /&gt;(defun c:tz () (command "textsize") (princ))&lt;br /&gt;(defun c:ts () (command "tabsurf") (princ))&lt;br /&gt;(defun c:pn () (command "plan") (princ))&lt;br /&gt;(defun c:k () (command "break" pause "f" pause "@") (princ))&lt;br /&gt;(defun c:f () (command "fillet" "r" pause "fillet") (princ))&lt;br /&gt;(defun c:ff () (command "fillet" "r" "0" "fillet") (princ))&lt;br /&gt;&lt;br /&gt;(defun c:oc () (command "osnap" "cent") (princ))&lt;br /&gt;(defun c:op () (command "osnap" "perp") (princ))&lt;br /&gt;(defun c:oe () (command "osnap" "endp") (princ))&lt;br /&gt;(defun c:om () (command "osnap" "midp") (princ))&lt;br /&gt;(defun c:oo () (command "osnap" "none") (princ))&lt;br /&gt;(defun c:oq () (command "osnap" "quad") (princ))&lt;br /&gt;(defun c:od () (command "osnap" "node") (princ))&lt;br /&gt;(defun c:os () (command "osnap" "insert") (princ))&lt;br /&gt;(defun c:on () (command "osnap" "nea") (princ))&lt;br /&gt;&lt;br /&gt;(defun c:xx () (command "ucs" "x" "90") (princ))&lt;br /&gt;(defun c:yy () (command "ucs" "y" "-90") (princ))&lt;br /&gt;(defun c:u33 () (command "ucs" "3" "end" pause "nea" pause "nea" pause) (princ))&lt;br /&gt;(defun c:u32 () (command "ucs" "3" "end" pause "nea" pause "") (princ))&lt;br /&gt;(defun c:slx () (command "slice" (ssget) "" "0,0,0" "5,0" "0,0,5" "b") (princ))&lt;br /&gt;(defun c:sex () (command "section" (ssget) "" "0,0,0" "5,0" "0,0,5") (princ))&lt;br /&gt;(defun c:sly () (command "slice" (ssget) "" "0,0,0" "0,5" "0,0,5" "b") (princ))&lt;br /&gt;(defun c:sey () (command "section" (ssget) "" "0,0,0" "0,5" "0,0,5") (princ))&lt;br /&gt;(defun c:sxy () (command "slice" (ssget) "" "xy" "" "b") (princ))&lt;br /&gt;(defun c:sl3 () (command "slice" pause "" "end" pause "end" pause "end" pause "b") (princ))&lt;br /&gt;(defun c:uw () (command "ucs" "") (princ))&lt;br /&gt;(defun c:uv () (command "ucs" "v") (princ))&lt;br /&gt;(defun c:uu () (command "ucs" "e") (princ))&lt;br /&gt;(defun c:v2 () (command "ucs" "") (command "vpoint" "r" "225" "35.2644") (princ))&lt;br /&gt;(defun c:v1 () (command "ucs" "") (command "vpoint" "r" "270" "90") (princ))&lt;br /&gt;(defun c:v0 () (command "ucs" "") (command "vpoint" "r" "220" "30") (princ))&lt;br /&gt;(defun c:v-2 () (command "ucs" "") (command "vpoint" "r" "220" "-35.2644") (princ))&lt;br /&gt;(defun c:vv2 () (command "ucs" "") (command "vpoint" "r" "45" "35.2644") (princ))&lt;br /&gt;(defun c:v3 () (command "vpoint" "r" "270" "0") (command "ucs" "v") (princ))&lt;br /&gt;(defun c:vv3 () (command "vpoint" "r" "90" "0") (command "ucs" "v") (princ))&lt;br /&gt;(defun c:v4 () (command "ucs" "") (command "vpoint" "r" "315" "35.2644") (princ))&lt;br /&gt;(defun c:vv4 () (command "ucs" "") (command "vpoint" "r" "135" "35.2644") (princ))&lt;br /&gt;(defun c:vv5 () (command "ucs" "") (command "vpoint" "r" "0" "0") (command "ucs" "v") (princ))&lt;br /&gt;(defun c:v5 () (command "ucs" "") (command "vpoint" "r" "180" "0") (command "ucs" "v") (princ))&lt;br /&gt;(defun c:v10 () (command "ucs" "") (command "vpoint" "r" "225" "10") (princ))&lt;br /&gt;(defun c:v15 () (command "ucs" "") (command "vpoint" "r" "225" "15") (princ))&lt;br /&gt;(defun c:v20 () (command "ucs" "") (command "vpoint" "r" "225" "20") (princ))&lt;br /&gt;(defun c:zz () (command "zoom" "p") (princ))&lt;br /&gt;(defun c:za () (command "zoom" "a") (command "zoom" ".5x") (princ))&lt;br /&gt;(defun c:zx () (command "zoom" ".5x") (princ))&lt;br /&gt;(defun c:pp () (command "pedit" "m" (ssget) "" "y" "j" "" "") (princ))&lt;br /&gt;(defun c:vs () (command "-vports" "si") (princ))&lt;br /&gt;(defun c:vp2 () (command "-vports" "2" "") (princ))&lt;br /&gt;(defun c:ur () (command "ucsicon" "or") (princ))&lt;br /&gt;(defun c:urn () (command "ucsicon" "n") (princ))&lt;br /&gt;(defun c:uo () (command "ucs" "o") (princ))&lt;br /&gt;(defun c:uoe () (command "ucs" "o" "endp") (princ))&lt;br /&gt;(defun c:uoc () (command "ucs" "o" "cen") (princ))&lt;br /&gt;(defun c:uoi () (command "ucs" "o" "int") (princ))&lt;br /&gt;(defun c:uoq () (command "ucs" "o" "qua") (princ))&lt;br /&gt;(defun c:uom () (command "ucs" "o" "mid") (princ))&lt;br /&gt;(defun c:ue () (command "ucs" "o" "end" pause) (princ))&lt;br /&gt;(defun c:e1 () (command "view" "r" "e1") (princ))&lt;br /&gt;(defun c:e2 () (command "view" "r" "e2") (princ))&lt;br /&gt;(defun c:e3 () (command "view" "r" "e3") (princ))&lt;br /&gt;(defun c:e4 () (command "view" "r" "e4") (princ))&lt;br /&gt;(defun c:e5 () (command "view" "r" "e5") (princ))&lt;br /&gt;(defun c:e6 () (command "view" "r" "e6") (princ))&lt;br /&gt;(defun c:e7 () (command "view" "r" "e7") (princ))&lt;br /&gt;(defun c:e8 () (command "view" "r" "e8") (princ))&lt;br /&gt;(defun c:e9 () (command "view" "r" "e9") (princ))&lt;br /&gt;(defun c:vv () (command "view" "s") (princ))&lt;br /&gt;(defun c:bm () (command "blipmode" "on") (princ))&lt;br /&gt;(defun c:cf () (command "chamfer" "d" pause "" "chamfer") (princ))&lt;br /&gt;(defun c:n () (command "pdmode" "3") (command "point") (princ))&lt;br /&gt;(defun c:nn () (command "pdmode" "1") (princ))&lt;br /&gt;(defun c:nm () (command "pdmode" "3") (princ))&lt;br /&gt;(defun c:dn ()&lt;br /&gt;(command "dimcen" "-.1")&lt;br /&gt;(command "dimcenter" pause)&lt;br /&gt;(command "dimcen" ".09")&lt;br /&gt;(princ)&lt;br /&gt;)&lt;br /&gt;(defun c:dx () (command "dimoverride" "dimtix" "on" "") (princ))&lt;br /&gt;(defun c:cc () (command "copy" (ssget) "" "m") (princ))&lt;br /&gt;(defun c:yd1 () (command "chprop" (ssget) "" "la" "d1" "") (princ))&lt;br /&gt;(defun c:yd2 () (command "chprop" (ssget) "" "la" "d2" "") (princ))&lt;br /&gt;(defun c:yd3 () (command "chprop" (ssget) "" "la" "d3" "") (princ))&lt;br /&gt;(defun c:ct () (command "change" (ssget) "" "p" "t") (princ))&lt;br /&gt;(defun c:ce () (command "change" (ssget) "" "p" "e") (princ))&lt;br /&gt;(defun c:sn () (command "snap" "s" "i" ".001") (command "snapmode" 0) (princ))&lt;br /&gt;(defun c:sd () (command "snap" "s" "s" ".001") (command "snapmode" 0) (princ))&lt;br /&gt;(defun c:dp () (command "dview" (ssget) "" "po") (princ))&lt;br /&gt;(defun c:df () (command "dim" "update" (ssget) "" "exit") (princ))&lt;br /&gt;(defun c:dw () (command "dim" "" "n") (princ))&lt;br /&gt;(defun c:lt () (command "linetype" "l" "dashed,hidden,center" "" "") (princ))&lt;br /&gt;(defun c:mh () (command "mview" "h" "on") (princ))&lt;br /&gt;(defun c:u32p () (command "ucs" "3" "end" pause "nea" pause "") (command "plan" "") (princ))&lt;br /&gt;(defun c:u33p ()&lt;br /&gt;(command "ucs" "3" "end" pause "nea" pause "nea" pause)&lt;br /&gt;(command "plan" "")&lt;br /&gt;(princ)&lt;br /&gt;)&lt;br /&gt;(defun c:up () (command "ucs" "") (command "plan" "") (princ))&lt;br /&gt;&lt;br /&gt;(defun c:l1 () (command "layer" "m" "1" "c" "1" "" "") (princ))&lt;br /&gt;(defun c:l2 () (command "layer" "m" "2" "c" "2" "" "") (princ))&lt;br /&gt;(defun c:l3 () (command "layer" "m" "3" "c" "3" "" "") (princ))&lt;br /&gt;(defun c:l4 () (command "layer" "m" "4" "c" "4" "" "") (princ))&lt;br /&gt;(defun c:l5 () (command "layer" "m" "5" "c" "5" "" "") (princ))&lt;br /&gt;(defun c:l6 () (command "layer" "m" "6" "c" "6" "" "") (princ))&lt;br /&gt;(defun c:l7 () (command "layer" "m" "7" "c" "7" "" "") (princ))&lt;br /&gt;(defun c:l8 () (command "layer" "m" "8" "c" "8" "" "") (princ))&lt;br /&gt;(defun c:l9 () (command "layer" "m" "9" "c" "9" "" "") (princ))&lt;br /&gt;(defun c:l11 () (command "layer" "m" "11" "c" "11" "" "") (princ))&lt;br /&gt;(defun c:l22 () (command "layer" "m" "22" "c" "41" "" "") (princ))&lt;br /&gt;(defun c:l33 () (command "layer" "m" "33" "c" "114" "" "") (princ))&lt;br /&gt;(defun c:l44 () (command "layer" "m" "44" "c" "135" "" "") (princ))&lt;br /&gt;(defun c:l55 () (command "layer" "m" "55" "c" "171" "" "") (princ))&lt;br /&gt;(defun c:l66 () (command "layer" "m" "66" "c" "203" "" "") (princ))&lt;br /&gt;(defun c:l77 () (command "layer" "m" "77" "c" "7" "" "") (princ))&lt;br /&gt;(defun c:l88 () (command "layer" "m" "88" "c" "7" "" "") (princ))&lt;br /&gt;(defun c:l99 () (command "layer" "m" "99" "c" "7" "" "") (princ))&lt;br /&gt;(defun c:l00 () (command "layer" "m" "00" "c" "7" "" "") (princ))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(defun c:lh1 () (command "layer" "m" "h1" "s" "h1" "c" "8" "" "l" "dashed" "" "") (princ))&lt;br /&gt;(defun c:ld1 () (command "layer" "m" "d1" "s" "d1" "c" "8" "" "") (princ))&lt;br /&gt;(defun c:ld2 () (command "layer" "m" "d2" "s" "d2" "c" "8" "" "") (princ))&lt;br /&gt;(defun c:ld3 () (command "layer" "m" "d3" "s" "d3" "c" "8" "" "") (princ))&lt;br /&gt;(defun c:lc1 () (command "layer" "m" "c1" "s" "c1" "c" "8" "" "l" "center" "" "") (princ))&lt;br /&gt;&lt;br /&gt;(defun c:0 () (command "layer" "s" "0" "") (princ))&lt;br /&gt;(defun c:1 () (command "layer" "s" "1" "") (princ))&lt;br /&gt;(defun c:2 () (command "layer" "s" "2" "") (princ))&lt;br /&gt;(defun c:3 () (command "layer" "s" "3" "") (princ))&lt;br /&gt;(defun c:4 () (command "layer" "s" "4" "") (princ))&lt;br /&gt;(defun c:5 () (command "layer" "s" "5" "") (princ))&lt;br /&gt;(defun c:6 () (command "layer" "s" "6" "") (princ))&lt;br /&gt;(defun c:7 () (command "layer" "s" "7" "") (princ))&lt;br /&gt;(defun c:8 () (command "layer" "s" "8" "") (princ))&lt;br /&gt;(defun c:9 () (command "layer" "s" "9" "") (princ))&lt;br /&gt;(defun c:00 () (command "layer" "s" "00" "") (princ))&lt;br /&gt;(defun c:11 () (command "layer" "s" "11" "") (princ))&lt;br /&gt;(defun c:22 () (command "layer" "s" "22" "") (princ))&lt;br /&gt;(defun c:33 () (command "layer" "s" "33" "") (princ))&lt;br /&gt;(defun c:44 () (command "layer" "s" "44" "") (princ))&lt;br /&gt;(defun c:55 () (command "layer" "s" "55" "") (princ))&lt;br /&gt;(defun c:66 () (command "layer" "s" "66" "") (princ))&lt;br /&gt;(defun c:77 () (command "layer" "s" "77" "") (princ))&lt;br /&gt;(defun c:88 () (command "layer" "s" "88" "") (princ))&lt;br /&gt;(defun c:99 () (command "layer" "s" "99" "") (princ))&lt;br /&gt;(defun c:d1 () (command "layer" "s" "d1" "") (princ))&lt;br /&gt;(defun c:d2 () (command "layer" "s" "d2" "") (princ))&lt;br /&gt;(defun c:d3 () (command "layer" "s" "d3" "") (princ))&lt;br /&gt;&lt;br /&gt;(defun c:y0 () (command "chprop" (ssget) "" "la" "0" "") (princ))&lt;br /&gt;(defun c:y1 () (command "chprop" (ssget) "" "la" "1" "") (princ))&lt;br /&gt;(defun c:y2 () (command "chprop" (ssget) "" "la" "2" "") (princ))&lt;br /&gt;(defun c:y3 () (command "chprop" (ssget) "" "la" "3" "") (princ))&lt;br /&gt;(defun c:y4 () (command "chprop" (ssget) "" "la" "4" "") (princ))&lt;br /&gt;(defun c:y5 () (command "chprop" (ssget) "" "la" "5" "") (princ))&lt;br /&gt;(defun c:y6 () (command "chprop" (ssget) "" "la" "6" "") (princ))&lt;br /&gt;(defun c:y7 () (command "chprop" (ssget) "" "la" "7" "") (princ))&lt;br /&gt;(defun c:y8 () (command "chprop" (ssget) "" "la" "8" "") (princ))&lt;br /&gt;(defun c:y9 () (command "chprop" (ssget) "" "la" "9" "") (princ))&lt;br /&gt;(defun c:y00 () (command "chprop" (ssget) "" "la" "00" "") (princ))&lt;br /&gt;(defun c:y11 () (command "chprop" (ssget) "" "la" "11" "") (princ))&lt;br /&gt;(defun c:y22 () (command "chprop" (ssget) "" "la" "22" "") (princ))&lt;br /&gt;(defun c:y33 () (command "chprop" (ssget) "" "la" "33" "") (princ))&lt;br /&gt;(defun c:y44 () (command "chprop" (ssget) "" "la" "44" "") (princ))&lt;br /&gt;(defun c:y55 () (command "chprop" (ssget) "" "la" "55" "") (princ))&lt;br /&gt;(defun c:y66 () (command "chprop" (ssget) "" "la" "66" "") (princ))&lt;br /&gt;(defun c:y77 () (command "chprop" (ssget) "" "la" "77" "") (princ))&lt;br /&gt;(defun c:y88 () (command "chprop" (ssget) "" "la" "88" "") (princ))&lt;br /&gt;(defun c:y99 () (command "chprop" (ssget) "" "la" "99" "") (princ))&lt;br /&gt;&lt;br /&gt;(defun c:eli () (command "ellipse" "i") (princ))&lt;br /&gt;(defun c:dvee () (command "dimlinear" "end" pause "end" pause pause) (princ))&lt;br /&gt;(defun c:dvep () (command "dimlinear" "end" pause "per" pause pause) (princ))&lt;br /&gt;(defun c:dvmm () (command "dimlinear" "mid" pause "mid" pause pause) (princ))&lt;br /&gt;(defun c:dvem () (command "dimlinear" "end" pause "mid" pause pause) (princ))&lt;br /&gt;(defun c:dcee () (command "osnap" "end") (command "dimcontinue" "end") (princ))&lt;br /&gt;(defun c:dveep () (command "dimlinear" "end" pause "end" pause "per" pause) (princ))&lt;br /&gt;(defun c:daee () (command "dimaligned" "end" pause "end" pause pause) (princ))&lt;br /&gt;(defun c:daeep () (command "dimaligned" "end" pause "end" pause "per" pause) (princ))&lt;br /&gt;(defun c:dvnn () (command "dimlinear" "nea" pause "per" pause pause) (princ))&lt;br /&gt;(defun c:dann () (command "dimaligned" "nea" pause "per" pause pause) (princ))&lt;br /&gt;(defun c:dvei () (command "dimlinear" "end" pause "int" pause pause) (princ))&lt;br /&gt;(defun c:dvec () (command "dimlinear" "end" pause "cen" pause pause) (princ))&lt;br /&gt;(defun c:dvcc () (command "dimlinear" "cen" pause "cen" pause pause) (princ))&lt;br /&gt;(defun c:dvqq () (command "dimlinear" "qua" pause "qua" pause pause) (princ))&lt;br /&gt;(defun c:dveq () (command "dimlinear" "end" pause "qua" pause pause) (princ))&lt;br /&gt;(defun c:ttt () (command "circle" "3p" "tan" pause "tan" pause "tan" pause) (princ))&lt;br /&gt;(defun c:mei () (command "move" (ssget) "" "end" pause "int") (princ))&lt;br /&gt;(defun c:mii () (command "move" (ssget) "" "int" pause "int") (princ))&lt;br /&gt;(defun c:mie () (command "move" (ssget) "" "int" pause "end") (princ))&lt;br /&gt;(defun c:mec () (command "move" (ssget) "" "end" pause "cen") (princ))&lt;br /&gt;(defun c:mee () (command "move" (ssget) "" "end" pause "end") (princ))&lt;br /&gt;(defun c:mep () (command "move" (ssget) "" "end" pause "perp") (princ))&lt;br /&gt;(defun c:mme () (command "move" (ssget) "" "mid" pause "end") (princ))&lt;br /&gt;(defun c:mmm () (command "move" (ssget) "" "mid" pause "mid") (princ))&lt;br /&gt;(defun c:mmi () (command "move" (ssget) "" "mid" pause "int") (princ))&lt;br /&gt;(defun c:mem () (command "move" (ssget) "" "end" pause "mid") (princ))&lt;br /&gt;(defun c:mcm () (command "move" (ssget) "" "cen" pause "mid") (princ))&lt;br /&gt;(defun c:mcc () (command "move" (ssget) "" "cen" pause "cen") (princ))&lt;br /&gt;(defun c:mci () (command "move" (ssget) "" "cen" pause "int") (princ))&lt;br /&gt;(defun c:mce () (command "move" (ssget) "" "cen" pause "end") (princ))&lt;br /&gt;&lt;br /&gt;(defun c:lee () (command "line" "end" pause "end" pause "") (princ))&lt;br /&gt;(defun c:ltt () (command "line" "tan" pause "tan" pause "") (princ))&lt;br /&gt;(defun c:let () (command "line" "end" pause "tan" pause "") (princ))&lt;br /&gt;(defun c:le () (command "line" "end" pause) (princ))&lt;br /&gt;(defun c:lm () (command "line" "mid" pause) (princ))&lt;br /&gt;(defun c:lq () (command "line" "qua" pause) (princ))&lt;br /&gt;(defun c:lnt () (command "lengthen" "t") (princ))&lt;br /&gt;(defun c:lnd () (command "lengthen" "de") (princ))&lt;br /&gt;(defun c:lei () (command "line" "end" pause "int" pause "") (princ))&lt;br /&gt;(defun c:ldd () (command "line" "nod" pause "nod" pause "") (princ))&lt;br /&gt;(defun c:lem () (command "line" "end" pause "mid" pause "") (princ))&lt;br /&gt;(defun c:lii () (command "line" "int" pause "int" pause "") (princ))&lt;br /&gt;(defun c:lim () (command "line" "int" pause "mid" pause "") (princ))&lt;br /&gt;(defun c:lip () (command "line" "int" pause "perp" pause "") (princ))&lt;br /&gt;(defun c:lmm () (command "line" "mid" pause "mid" pause "") (princ))&lt;br /&gt;(defun c:lmp () (command "line" "mid" pause "perp" pause "") (princ))&lt;br /&gt;(defun c:lmt () (command "line" "mid" pause "tan" pause "") (princ))&lt;br /&gt;(defun c:lqi () (command "line" "qua" pause "int" pause "") (princ))&lt;br /&gt;(defun c:lqm () (command "line" "qua" pause "mid" pause "") (princ))&lt;br /&gt;(defun c:lqp () (command "line" "qua" pause "perp" pause "") (princ))&lt;br /&gt;(defun c:lqq () (command "line" "qua" pause "qua" pause "") (princ))&lt;br /&gt;(defun c:lcc () (command "line" "cen" pause "cen" pause "") (princ))&lt;br /&gt;(defun c:lpe () (command "line" "perp" pause "end" pause "") (princ))&lt;br /&gt;(defun c:lep () (command "line" "end" pause "per" pause "") (princ))&lt;br /&gt;(defun c:lpi () (command "line" "perp" pause "int" pause "") (princ))&lt;br /&gt;(defun c:lcq () (command "line" "cen" pause "qua" pause "") (princ))&lt;br /&gt;(defun c:lec () (command "line" "end" pause "cen" pause "") (princ))&lt;br /&gt;(defun c:lic () (command "line" "int" pause "cen" pause "") (princ))&lt;br /&gt;(defun c:lmc () (command "line" "mid" pause "cen" pause "") (princ))&lt;br /&gt;(defun c:lmi () (command "line" "mid" pause "int" pause "") (princ))&lt;br /&gt;(defun c:lmq () (command "line" "mid" pause "qua" pause "") (princ))&lt;br /&gt;(defun c:lcn () (command "line" "cen" pause "nea" pause "") (princ))&lt;br /&gt;(defun c:lie () (command "line" "int" pause "end" pause "") (princ))&lt;br /&gt;(defun c:lin () (command "line" "int" pause "nea" pause "") (princ))&lt;br /&gt;(defun c:lme () (command "line" "mid" pause "end" pause "") (princ))&lt;br /&gt;(defun c:lnc () (command "line" "nea" pause "cen" pause "") (princ))&lt;br /&gt;(defun c:lni () (command "line" "nea" pause "int" pause "") (princ))&lt;br /&gt;(defun c:lne () (command "line" "nea" pause "end" pause "") (princ))&lt;br /&gt;(defun c:lnm () (command "line" "nea" pause "mid" pause "") (princ))&lt;br /&gt;(defun c:lnn () (command "line" "nea" pause "nea" pause "") (princ))&lt;br /&gt;(defun c:lnp () (command "line" "nea" pause "per" pause "") (princ))&lt;br /&gt;(defun c:lnq () (command "line" "nea" pause "qua" pause "") (princ))&lt;br /&gt;(defun c:ltc () (command "line" "tan" pause "cen" pause "") (princ))&lt;br /&gt;(defun c:lte () (command "line" "tan" pause "end" pause "") (princ))&lt;br /&gt;(defun c:lii () (command "line" "int" pause "int" pause "") (princ))&lt;br /&gt;(defun c:ltm () (command "line" "tan" pause "mid" pause "") (princ))&lt;br /&gt;(defun c:ltn () (command "line" "tan" pause "nea" pause "") (princ))&lt;br /&gt;(defun c:ltq () (command "line" "tan" pause "qua" pause "") (princ))&lt;br /&gt;(defun c:lmn () (command "line" "mid" pause "nea" pause "") (princ))&lt;br /&gt;(defun c:lqn () (command "line" "qua" pause "nea" pause "") (princ))&lt;br /&gt;&lt;br /&gt;(defun c:vr2 ()&lt;br /&gt; (setvar "cmdecho" 0)&lt;br /&gt; (command "id" "end" pause)&lt;br /&gt; (command "vpoint" "r" "225" "35.2644")&lt;br /&gt; (command "ucsicon" "or")&lt;br /&gt; (command "ucs" "o" "@")&lt;br /&gt; (command "rotate" (ssget) "" "0,0,0" "-90")&lt;br /&gt; (command "ucs" "x" "90")&lt;br /&gt; (command "rotate" "p" "" "@" "90")&lt;br /&gt; (command "ucs" "w")&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;(defun c:r2 ()&lt;br /&gt; (setvar "cmdecho" 0)&lt;br /&gt; (command "id" "endp" pause)&lt;br /&gt; (command "ucs" "o" "@")&lt;br /&gt; (command "rotate" (ssget) "" "0,0,0" "90")&lt;br /&gt; (command "ucs" "x" "90")&lt;br /&gt; (command "ucs" "y" "-90")&lt;br /&gt; (command "rotate" "p" "" "0,0" "90")&lt;br /&gt; (command "ucs" "w")&lt;br /&gt; (command "vpoint" "r" "270" "90")&lt;br /&gt; (setvar "cmdecho" 1)&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;(defun c:r1 ()&lt;br /&gt; (setvar "cmdecho" 0)&lt;br /&gt; (command "id" "endp" pause)&lt;br /&gt; (command "ucs" "o" "@")&lt;br /&gt; (command "ucs" "x" "90")&lt;br /&gt; (command "ucs" "y" "-90")&lt;br /&gt; (command "rotate" (ssget) "" "0,0,0" "90")&lt;br /&gt; (command "ucs" "w")&lt;br /&gt; (command "vpoint" "r" "270" "90")&lt;br /&gt; (setvar "cmdecho" 1)&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;(defun c:vr ()&lt;br /&gt; (setvar "cmdecho" 0)&lt;br /&gt; (command "id" "end" pause)&lt;br /&gt; (command "vpoint" "r" "225" "35.2644")&lt;br /&gt; (command "ucsicon" "or")&lt;br /&gt; (command "ucs" "o" "@")&lt;br /&gt; (command "ucs" "x" "90")&lt;br /&gt; (command "ucs" "y" "-90")&lt;br /&gt; (command "rotate" (ssget) "" "@" "-90")&lt;br /&gt; (command "ucs" "w")&lt;br /&gt; (setvar "cmdecho" 1)&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;(defun c:cee ()&lt;br /&gt; (setvar "cmdecho" 0)&lt;br /&gt; (setq a (ssget))&lt;br /&gt; (command "osmode" "33")&lt;br /&gt; (command "copy" a "" "m")&lt;br /&gt; (setvar "cmdecho" 1)&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;(defun c:dee ()&lt;br /&gt; (command "dist" "endp" pause "endp" pause)&lt;br /&gt; (command "textscr")&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;(defun c:dep ()&lt;br /&gt; (command "dist" "endp" pause "per" pause)&lt;br /&gt; (command "textscr")&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;(defun c:j () (command "lengthen" "dy") (princ))&lt;br /&gt;(defun c:tit () (command "script" "tt") (princ))&lt;br /&gt;(defun c:tit2 () (command "script" "tt2") (princ))&lt;br /&gt;(defun c:ri () (command "re-init" "31") (princ))&lt;br /&gt;(defun c:pur () (command "purge" "all" "" "n") (princ))&lt;br /&gt;(defun c:srs () (command "-style" "rs" "romans.shx" "" "" "" "" "" "") (princ))&lt;br /&gt;(defun c:srd () (command "-style" "rd" "romand.shx" "" "" "" "" "" "") (princ))&lt;br /&gt;(defun c:srt () (command "-style" "rd" "romant.shx" "" "" "" "" "" "") (princ))&lt;br /&gt;(defun c:sis () (command "-style" "is" "isocp.shx" "" "" "" "" "") (princ))&lt;br /&gt;(defun c:jh () (command "change" (ssget) "" "p" "lt" "hidden" "") (princ))&lt;br /&gt;(defun c:jc () (command "change" (ssget) "" "p" "lt" "center" "") (princ))&lt;br /&gt;(defun c:jd () (command "change" (ssget) "" "p" "lt" "dashed" "") (princ))&lt;br /&gt;(defun c:j1 () (command "change" (ssget) "" "p" "c" "1" "") (princ))&lt;br /&gt;(defun c:j2 () (command "change" (ssget) "" "p" "c" "2" "") (princ))&lt;br /&gt;(defun c:j3 () (command "change" (ssget) "" "p" "c" "3" "") (princ))&lt;br /&gt;(defun c:j4 () (command "change" (ssget) "" "p" "c" "4" "") (princ))&lt;br /&gt;(defun c:j5 () (command "change" (ssget) "" "p" "c" "5" "") (princ))&lt;br /&gt;(defun c:j6 () (command "change" (ssget) "" "p" "c" "6" "") (princ))&lt;br /&gt;(defun c:j7 () (command "change" (ssget) "" "p" "c" "7" "") (princ))&lt;br /&gt;(defun c:j8 () (command "change" (ssget) "" "p" "c" "8" "") (princ))&lt;br /&gt;(defun c:j10 () (command "change" (ssget) "" "p" "c" "10" "") (princ))&lt;br /&gt;(defun c:ld () (command "layout" "d") (princ))&lt;br /&gt;(defun c:lc () (command "layout" "c") (princ))&lt;br /&gt;(defun c:ldl ()&lt;br /&gt; (command "layout" "d" "layout2")&lt;br /&gt; (command "layout" "d" "layout1")&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;(defun c:rtb () (command "-toolbar" "render" "") (princ))&lt;br /&gt;(defun c:rtn () (command "-toolbar" "render" "h") (princ))&lt;br /&gt;&lt;br /&gt;(defun c:down ()&lt;br /&gt; (command "extrude" "endp" pause "" "@" ".xy" "@" "0,0,0" "")&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;(defun c:qt () (command "qtext" "on") (command "regen") (princ))&lt;br /&gt;(defun c:qf () (command "qtext" "off") (command "regen") (princ))&lt;br /&gt;(defun c:sq () (command "polygon" "4" pause "c" pause) (princ))&lt;br /&gt;(defun c:pm () (command "pedit" "m" (ssget) "" "y" "") (princ))&lt;br /&gt;(defun c:lon () (command ".-layer" "on" "*" "") (princ))&lt;br /&gt;(defun c:er ()&lt;br /&gt; (setvar "cmdecho" 0)&lt;br /&gt; (command "layer" "m" "1" "c" "1" "" "")&lt;br /&gt; (command "layer" "m" "2" "c" "2" "" "")&lt;br /&gt; (command "layer" "m" "3" "c" "3" "" "")&lt;br /&gt; (command "layer" "m" "4" "c" "4" "" "")&lt;br /&gt; (command "layer" "m" "5" "c" "5" "" "")&lt;br /&gt; (command "layer" "m" "6" "c" "6" "" "")&lt;br /&gt; (command "layer" "m" "7" "c" "7" "" "")&lt;br /&gt; (command "layer" "m" "8" "c" "8" "" "")&lt;br /&gt; (command "layer" "m" "9" "c" "9" "" "")&lt;br /&gt; (command "layer" "m" "11" "c" "11" "" "")&lt;br /&gt; (command "layer" "m" "22" "c" "41" "" "")&lt;br /&gt; (command "layer" "m" "33" "c" "114" "" "")&lt;br /&gt; (command "layer" "m" "44" "c" "135" "" "")&lt;br /&gt; (command "layer" "m" "55" "c" "171" "" "")&lt;br /&gt; (command "layer" "m" "66" "c" "203" "" "")&lt;br /&gt; (command "layer" "m" "77" "c" "7" "" "")&lt;br /&gt; (command "layer" "m" "88" "c" "7" "" "")&lt;br /&gt; (command "layer" "m" "99" "c" "7" "" "")&lt;br /&gt; (command "layer" "s" "0" "")&lt;br /&gt; (setvar "cmdecho" 1)&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;(defun c:mz () (command "move" (ssget) "" "endp" pause ".xy" "@" "0,0,0") (princ))&lt;br /&gt;(defun c:mx () (command "move" (ssget) "" "endp" pause ".yz" "@" "0,0,0") (princ))&lt;br /&gt;(defun c:my () (command "move" (ssget) "" "endp" pause ".xz" "@" "0,0,0") (princ))&lt;br /&gt;(defun c:cz () (command "copy" (ssget) "" "endp" pause ".xy" "@" "0,0,0") (princ))&lt;br /&gt;(defun c:cx () (command "copy" (ssget) "" "endp" pause ".yz" "@" "0,0,0") (princ))&lt;br /&gt;(defun c:cy () (command "copy" (ssget) "" "endp" pause ".xz" "@" "0,0,0") (princ))&lt;br /&gt;(defun c:sz () (command "stretch" (ssget) "" "endp" pause ".xy" "@" "0,0,0") (princ))&lt;br /&gt;(defun c:sx () (command "stretch" (ssget) "" "endp" pause ".yz" "@" "0,0,0") (princ))&lt;br /&gt;(defun c:sy () (command "stretch" (ssget) "" "endp" pause ".xz" "@" "0,0,0") (princ))&lt;br /&gt;&lt;br /&gt;(defun c:lz () (command "line" pause ".xy" "@" "0,0,0" "")(princ))&lt;br /&gt;(defun c:lx () (command "line" pause ".yz" "@" "0,0,0" "")(princ))&lt;br /&gt;(defun c:ly () (command "line" pause ".xz" "@" "0,0,0" "")(princ))&lt;br /&gt;&lt;br /&gt;;;;Copy and Rotate the object(s).&lt;br /&gt;(defun c:cr ()&lt;br /&gt; (setvar "cmdecho" 0)&lt;br /&gt; (prompt "\nSelect object(s) to copy and rotate:")&lt;br /&gt; (setq aa (ssget))&lt;br /&gt; (if (/= aa nil)&lt;br /&gt;   (progn&lt;br /&gt;     (setq bb (getpoint "\nPick point for center of rotation"))&lt;br /&gt;     (if (/= bb nil)&lt;br /&gt;(progn&lt;br /&gt;  (command ".copy" aa "" bb bb)&lt;br /&gt;  (prompt "\nRotation angle")&lt;br /&gt;  (command ".rotate" "p" "" bb pause)&lt;br /&gt;  (command "redraw")&lt;br /&gt;)&lt;br /&gt;(prompt "\nInvalid. Expect 2D or 3D point.")&lt;br /&gt;     )&lt;br /&gt;   )&lt;br /&gt;   (prompt "\nNothing select.")&lt;br /&gt; )&lt;br /&gt; (setvar "cmdecho" 1)&lt;br /&gt; (princ)&lt;br /&gt;)&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ခင္မင္ေလးစားလ်က္...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ခ်န္းခ်န္း (mg mine)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230671797584664602-7288484377000262870?l=chanlisp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chanlisp.blogspot.com/feeds/7288484377000262870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chanlisp.blogspot.com/2009/08/macro.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/7288484377000262870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/7288484377000262870'/><link rel='alternate' type='text/html' href='http://chanlisp.blogspot.com/2009/08/macro.html' title=''/><author><name>***Chan Chan***            (Mg Mine)</name><uri>http://www.blogger.com/profile/06394161288725792551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_9YA_STSCWAU/R201JR9OsDI/AAAAAAAAAD0/iJAZRRi_RTo/S220/vVfSQj54OJsvoyDGTRw-hUbipzMBMER3ecftxL8HuojKhVjaozP2dUmoGPsM31Jb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1230671797584664602.post-133049159480770730</id><published>2009-08-19T08:19:00.003-07:00</published><updated>2009-08-19T08:19:47.769-07:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(255, 255, 153);"&gt;(command "..."......) ဆိုျပီး command function ကို သံုးရင္ မၾကာမၾကာ သံုးရေလ့ရိွတဲ့ command function ေတြကေတာ့..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;Pause      ဆုိလိုရင္းက user ကို specify first point ဆိုျပီးေတာင္းတာမ်ိဳးမွာ user က screen ေပၚမွာ click လုပ္တဲ့အခါမ်ိဳးအတြက္ပါ...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;""            ၾကားထဲမွာဘာမွမပါဘဲ double quote ခ်ည္းပဲဆိုရင္ေတာ့ enter ႏွိပ္တယ္ဆိုတဲ့အဓိပၼါယ္ပါ...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(ssget)""  အသံုးျပဳသူမွေနျပီး object ေတြကို select လုပ္ႏိုင္ဖို့အတြက္နဲ့ "" enter ပါ. Pick select သုံးရမယ္ဆိုရင္ေတာ့ pause ကိုပဲသံုးရပါမယ္..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;"y" "1.2"   စတဲ့ option ေတြ...အတိုင္းအတာေတြ အသံုးျပဳသူမွထည့္ေပးဖို့လိုတဲ့ character ေတြကို double quote ၂ခုၾကားက string     &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;               အေနနဲ့ျပရပါတယ္..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ေအာက္က macro ေလးေတြကို လိုက္ဖတ္ၾကည့္ျပီး (run ၾကည့္တာကေတာ့ပိုေကာင္းတာေပါ့ ခင္ဗ်ာ...)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;အဓိပၼါယ္ေဖၚၾကည့္ပါ.....(autoLisp တဖိုင္မွာ  function ေတြၾကိဳက္သေလာက္ပါ၀င္လို့ရပါတယ္.. ဖိုင္ေတြအမ်ားၾကီးလုပ္ထားဖို့မလိုေတာ့ဘူးေပါ့ခင္ဗ်ာ)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ခ်န္းခ်န္းကိုယ္တိုင္ေရးျပီး ကိုယ္တိုင္သံုးေနက် ခ်န္းခ်န္းရဲ့ လက္နက္ပုန္းတခ်ဳိ့ပါ.... (ဟိဟိ...ေရွာင္ၾက ...ရွားၾကေပေရာ့.....)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt; (defun c:is () (command "snapstyl" "1") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:iss () (command "snapstyl" "0") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:dd1 () (command "dispsilh" "1") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:ss1 () (command "surftab1" "20") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:ss2 () (command "surftab1" "20") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:vt () (command "-view" "o" "top") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:vl () (command "-view" "o" "left") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:vf () (command "-view" "o" "front") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:vsw () (command "-view" "_swiso" "") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:vne () (command "-view" "_neiso" "") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:vnw () (command "-view" "_nwiso" "") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:vse () (command "-view" "_seiso" "") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:gl () (command "ucs" "left") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:gf () (command "ucs" "front") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:gw () (command "ucs" "world") (princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:sg () (command "_shademode""g")(princ))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:s2 () (command "_shademode""2d")(princ))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ခင္မင္ေလးစားလ်က္.....&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ခ်န္းခ်န္း(Mg Mine)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230671797584664602-133049159480770730?l=chanlisp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chanlisp.blogspot.com/feeds/133049159480770730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chanlisp.blogspot.com/2009/08/command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/133049159480770730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/133049159480770730'/><link rel='alternate' type='text/html' href='http://chanlisp.blogspot.com/2009/08/command.html' title=''/><author><name>***Chan Chan***            (Mg Mine)</name><uri>http://www.blogger.com/profile/06394161288725792551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_9YA_STSCWAU/R201JR9OsDI/AAAAAAAAAD0/iJAZRRi_RTo/S220/vVfSQj54OJsvoyDGTRw-hUbipzMBMER3ecftxL8HuojKhVjaozP2dUmoGPsM31Jb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1230671797584664602.post-3802628602956478602</id><published>2009-08-19T08:19:00.001-07:00</published><updated>2009-08-19T08:19:12.132-07:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(255, 255, 153);"&gt;ဒါၾကီးကအလုပ္ပိုပါတယ္လို့ေတာ့မထင္ပါနဲ့ေနာ္... (လြယ္လြယ္ေလး aliaseditor သံုးလိုက္မွာေပါ့ လို့လည္း မေတြးပါနဲ့အံုး)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ဒီ mm mirror ဆိုတာက ဥပမာေပးသေဘာမ်ိဳးမို့ပါ....&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ဆက္ရေအာင္ေနာ္... တကယ္ေတာ့ programming ဆိုတာ ကြန္ျပဴတာကေန လုပ္ငန္း အစီအစဥ္ အတိုင္းလုပ္ေဆာင္သြားဖို့ ၾကိဳတင္စီစဥ္ထားတာ&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;မ်ိဳးပါ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;single line ေတြကို poly line ( တြဲဆက္ေနေသာလိုင္း) အျဖစ္ေျပာင္းဖို့ pe (pedit) ဆိုတဲ့ command ကို auto CAD user ေတြအၾကိမ္ၾကိမ္&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;သံုးဖူးၾကပါလိမ့္မယ္... လုပ္ေဆာင္ရတာေတြကေတာ့..command line ကေန.. pe (enter)... m (enter) (line ေတြကို select လုပ္တယ္ enter)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;yes ဆိုတဲ့ option အတြက္ y(enter) join အတြက္ j (enter) ( enter ) (enter) မွာ အဲ့ဒိcommand ျပီးဆံုးပါတယ္..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;အဲ့ဒိအစီအစဥ္ကို ေအာက္က macro ေလးမွာ ဒီလို ခ်ေရးလိုက္ပါတယ္...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:pp () (command ".pedit" "m" (ssget) "" "y" "j" "" "") (princ))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;pp လို့ command line မွာရိုက္ရင္..pe (enter) (m (enter)) ..(ssget)ဆိုတာကေတာ့ select လုပ္ဖို့ အတြက္ user ကို ခန ေစာင့္ေပးတာပါ..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;user က select လုပ္ျပီးတာနဲ့ y(enter) j (enter) ( enter ) (enter) ကို ကြန္ျပဴတာက လုပ္ေဆာင္ေပးပါလိမ့္မယ္..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;လက္ေတြ့ သံုးၾကည့္ရင္ pp (enter) select လုပ္(enter) ဒါပဲႏွိပ္ရတဲ့ အတြက္ အခ်ိန္ေတာ့ save ျဖစ္သြားျပန္ပါျပီ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ခင္မင္ေလးစားလ်က္...&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230671797584664602-3802628602956478602?l=chanlisp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chanlisp.blogspot.com/feeds/3802628602956478602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chanlisp.blogspot.com/2009/08/blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/3802628602956478602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/3802628602956478602'/><link rel='alternate' type='text/html' href='http://chanlisp.blogspot.com/2009/08/blog-post.html' title=''/><author><name>***Chan Chan***            (Mg Mine)</name><uri>http://www.blogger.com/profile/06394161288725792551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_9YA_STSCWAU/R201JR9OsDI/AAAAAAAAAD0/iJAZRRi_RTo/S220/vVfSQj54OJsvoyDGTRw-hUbipzMBMER3ecftxL8HuojKhVjaozP2dUmoGPsM31Jb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1230671797584664602.post-5336089641197867992</id><published>2009-08-19T08:11:00.003-07:00</published><updated>2009-08-19T08:17:18.611-07:00</updated><title type='text'>autoLisp command macro.....!</title><content type='html'>&lt;span style="color: rgb(255, 255, 153);"&gt;တကယ္ေတာ့ auto CAD drafting, modeling ပိုင္းမွာ professional တေယာက္ခ်င္းစီဟာ command ေတြကိုသိတာျခင္း အသံုးခ်ႏိုင္တာျခင္းအရမ္းၾကီးမကြာၾကပါ၀ူး ဒါေပမယ့္ macro သံုးေလ့ရိွတဲ့ user ကေတာ့ပံုမွန္ထက္ လြယ္ကူ လ်င္ျမန္စြာ drawing ေတြကို ျပီးစီးေလ့ရိွပါတယ္... ဘာေၾကာင့္လည္းဆိုေတာ့ auto CAD ကိုသံုးျပီး drawing တခုဆြဲေနတုန္းမွာ command line ကေန command ေတြကို အၾကိမ္ၾကိမ္ ရိုက္ႏိွပ္အသံုးခ်ရေလ့ရိွပါတယ္.... တခ်ိဳ့ တခ်ို့ ေသာ မိမိသံုးေနၾက command ေတြဟာ မလိုအပ္ပဲအခ်ိန္ေတြပိုေပးေနရတာမ်ိဳးကို သတိထားမိခ်င္မွထားမိပါလိမ့္မယ္... ေသခ်ာပါတယ္ အဲ့ဒိလိုကိစၥမ်ိဳးရိွေနတာ... တကယ္ေတာ့ခ်န္းခ်န္းက အင္မတန္ညံ့ပါတယ္... ထံုလိုက္တာလည္း လြန္ပါေရာလို့ ခနခန အေျပာခံထိတဲ့သူေတြထဲမွာ ခ်န္းခ်န္းလည္းတေယာက္အပါအ၀င္ေပါ့..(နဲနဲၾကြားထားတာ အထင္ၾကီးေအာင္...ဟိဟိ)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ဒါေပမယ့္ သူသူငါငါ ပံုေတြဆြဲရရင္ေတာ့ ခ်န္းခ်န္းက ျမန္ျမန္ျပီးေလ့ရိွပါတယ္.... (လက္ေတြ့အင္တာဗ်ဴးေျဖတဲ့ အခ်ိန္ေတြဆို ခ်န္းခ်န္းတို့ေပ်ာ္တာေပါ့)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ပံုတပံုအတြက္ mi &lt;/span&gt;&lt;mirror style="color: rgb(255, 255, 153);"&gt; .. enter ဆိုတဲ့ command ကို အၾကိမ္ ၃၀ အသံုးျပဳရတယ္ဆိုပါေတာ့..&lt;br /&gt;အဲ့ဒိ mi အစား mm ... enter ပဲႏိွပ္ရမယ္ဆိုရင္ အခ်ိန္ စကၠန့္၀က္ေလာက္ေျခြတာျဖစ္ႏိုင္ပါတယ္...တခ်က္ခ်င္းအတြက္မသိသာလွေပမယ့္ စကၠန့္၀က္ေတြေပါင္းမ်ားလာတဲ့အခါ နာရီေတြ ရက္ေတြျဖစ္လာပါတယ္... အဲ့ဒိ mi ကို mm အျဖစ္ေျပာင္းတာမ်ိဳးက ရိုးရွင္းပါတယ္...&lt;br /&gt;&lt;br /&gt;auto CAD ရဲ့ visual lisp editor ကေန file အသစ္ေတာင္းျပီး  ေအာက္က code ေလးေတြကို ( ctrl+c.... ctrl+v...&lt;img src="http://www.myanmarengineer.org/forum/Smileys/classic/cheesy.gif" alt="Cheesy" border="0" /&gt;) ကူးေရးပါ...&lt;br /&gt;&lt;br /&gt;(defun c:mm () (command ".mirror") (princ))&lt;br /&gt;&lt;br /&gt;အဲ့ဒါရဲ့ အဓပၼါယ္ကေတာ့&lt;br /&gt;( program တခုစမယ္...&lt;br /&gt;mm ဆိုတဲ့  function name ကို auto  CAD command တခုအျဖစ္သတ္မွတ္ပါတယ္... defun c:mm ()&lt;br /&gt;mirror ဆိုတဲ့ command ကို  ေခၚေပးထား (command ".mirror") တကယ္လို့ တစံုတေယာက္က Undefine လုပ္ထားရင္လည္း mirror ကို ေခၚရမယ္.. ( စြတ္ပဲ....)&lt;br /&gt;(princ) အပို return ေတြ မျမင္ရဖို့ပါ...&lt;br /&gt;) ဒါပဲ....&lt;br /&gt;&lt;br /&gt;program တခုရဲ့ ဖြဲစည္းပံု အျပည့္အစံုပါပါတယ္....&lt;br /&gt;(defun c:function_name (/)&lt;br /&gt;(do something)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;ခင္မင္ေလးစားလ်က္...&lt;br /&gt;ခ်န္းခ်န္း&lt;/mirror&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230671797584664602-5336089641197867992?l=chanlisp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chanlisp.blogspot.com/feeds/5336089641197867992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chanlisp.blogspot.com/2009/08/autolisp-command-macro.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/5336089641197867992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/5336089641197867992'/><link rel='alternate' type='text/html' href='http://chanlisp.blogspot.com/2009/08/autolisp-command-macro.html' title='autoLisp command macro.....!'/><author><name>***Chan Chan***            (Mg Mine)</name><uri>http://www.blogger.com/profile/06394161288725792551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_9YA_STSCWAU/R201JR9OsDI/AAAAAAAAAD0/iJAZRRi_RTo/S220/vVfSQj54OJsvoyDGTRw-hUbipzMBMER3ecftxL8HuojKhVjaozP2dUmoGPsM31Jb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1230671797584664602.post-8880985988119660805</id><published>2009-08-19T08:11:00.001-07:00</published><updated>2009-08-19T08:17:48.246-07:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(255, 255, 153);"&gt;-Integer --&gt;  1, 2, 35, 778 စသည့္ ကိန္းျပည့္မ်ား....&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;-Real Number--&gt;   0.2, 3.34,.... စသည့္ ဒသမကိန္းမ်ား...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;-String --&gt;  "Chan Chan" , "Hero",.... စသည့္ စကားတြဲမ်ား...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;-List  --&gt;     (1.2 2.0 6.&lt;/span&gt;&lt;img style="color: rgb(255, 255, 153);" src="http://www.myanmarengineer.org/forum/Smileys/classic/cool.gif" alt="Cool" border="0" /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt; ကဲ့သို့ေသာ data list မ်ား...list ကို အျမဲတန္း ကြင္း အဖြင့္အပိတ္ထဲမွာထားပါတယ္..(1.2 2.0 6.&lt;/span&gt;&lt;img style="color: rgb(255, 255, 153);" src="http://www.myanmarengineer.org/forum/Smileys/classic/cool.gif" alt="Cool" border="0" /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ကေတာ့ (x,y,z) ရဲ့ cordinate list တခုျဖစ္ပါတယ္...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;-File Descriptor--&gt;      &lt;/span&gt;&lt;file: style="color: rgb(255, 255, 153);"&gt;    File Descriptorကိုသံုးျပီး ဖိုင္ေတြကို access လုပ္ႏိုင္ပါတယ္...&lt;br /&gt;-Object Name --&gt;    &lt;600000014c&gt;  auto cad နဲ့ဖန္တီးျဖစ္ေပၚလာသမွ် object ေတြမွာ &lt;600000014c&gt; လို alphanumeric code ကိုယ္စီရိွပါတယ္..အဲ့ဒါကိုသံုးျပီး object ေတြကို access လုပ္ႏိုင္ပါတယ္..&lt;br /&gt;-Selection Set --&gt; &lt;selection&gt; object  ေတြကို select လုပ္ထားတဲ့ selection အစုပါ...&lt;br /&gt;-Symbol --&gt;  point1, dx4,...စသည္&lt;br /&gt;-Subrs --&gt;  defun, alert,...ကဲ့သို့ေသာ autolisp ရဲ့ built-in ပါလာတဲ့ function ေတြပါ...&lt;br /&gt;-Atoms  --&gt; atoms ဆိုတာကေတာ့ တျခားတန္ဖိုးတခုခု ထပ္ခြဲမထုတ္ႏိုင္တဲ့ အရာပါ... autoLisp မွာ List နဲ့ atoms ဆိုျပီး data class ႏွစ္ခုရိွပါတယ္.&lt;br /&gt;ဥပမာေျပာရရင္ coordinate list တခုမွာ (x,y,z) ဟာ List ပါ.... x ကေတာ့ atoms ျဖစ္ပါတယ္ယ yဟာလည္း atoms တခုပါ...atoms ဟာ numbers ေရာ symbol ေရာ ႏွစ္ခုလံုးျဖစ္ႏိုင္ပါတယ္....&lt;br /&gt;&lt;br /&gt;ခင္မင္ေလးစားလ်က္&lt;br /&gt;ခ်န္းခ်န္း(mg mine)&lt;/selection&gt;&lt;/file:&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230671797584664602-8880985988119660805?l=chanlisp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chanlisp.blogspot.com/feeds/8880985988119660805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chanlisp.blogspot.com/2009/08/integer-1-2-35-778.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/8880985988119660805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/8880985988119660805'/><link rel='alternate' type='text/html' href='http://chanlisp.blogspot.com/2009/08/integer-1-2-35-778.html' title=''/><author><name>***Chan Chan***            (Mg Mine)</name><uri>http://www.blogger.com/profile/06394161288725792551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_9YA_STSCWAU/R201JR9OsDI/AAAAAAAAAD0/iJAZRRi_RTo/S220/vVfSQj54OJsvoyDGTRw-hUbipzMBMER3ecftxL8HuojKhVjaozP2dUmoGPsM31Jb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1230671797584664602.post-4124175340754011871</id><published>2009-08-19T08:09:00.002-07:00</published><updated>2009-08-19T08:18:04.539-07:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(255, 255, 153);"&gt;ခ်န္းခ်န္းတို့ auto cad ကို သံုးျပီး visual lisp ကို စတင္ဖို့ auto CAD ရဲ့ visual lisp editor ကေန ဖိုင္ အသစ္တခုဖြင့္..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:my-first ()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt; (alert "Hello World!")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt; (princ)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;လို့ရိုက္ပါ... file ကို my-first နာမည္နဲ့ save လုပ္ျပီး...runၾကည့္ရေအာင္ေနာ္...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;autocad command line မွာ ap လို့ရိုက္ျပီး enter ေခါက္ရင္ loadapplication dialoug box ေပၚပါမယ္..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;မိမိဖန္တီးခဲ့တဲ့ my-first.lsp ကိုload လုပ္ျပီး load application dialoug box ကို close လုပ္ပါ..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;command line မွာ...my-first လို့ရိုက္ျပီး enter ေခါက္ရင္ ဒီprogram ေလး run သြားတာကို ေတြ့ရပါလိမ့္မယ္...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;run သြားတာကို ေတြ့လိုက္ျပီးဆိုတာဟာ... visual lisp programmer တေယာက္ရဲ့ ပထမေျခလွမ္း ဆိုတဲ့အေၾကာင္း ကမၻာၾကီးကို ႏႈတ္ဆတ္လိုက္တာ&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;လို့ပဲထားပါစို့....&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:my-first ()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;  (alert "Hello World!")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;  (princ)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ဒါဟာ autolisp program တခုျဖစ္တာေၾကာင့္ လက္သည္းကြင္း အဖြင့္အပိတ္ကို သံုးပါတယ္...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;အျမဲတန္း လက္သည္းကြင္းဖြင့္ျပီးprogram ကိုစတင္ပါတယ္... ကြင္း အဖြင့္ အပိတ္ဟာမွန္ကန္ရပါတယ္... ကြင္း အပိတ္လိုေနရင္ ျဖစ္ေစ.. အပိတ္ပိုေနရင္ျဖစ္ေစ program အလုပ္မလုပ္ႏိုင္ ပါ၀ူး... ပထမဆံုးစခဲ့တဲ့ ကြင္းကို ပိတ္ျပီးျပီဆိုရင္ function တခုျပီးဆံုးတယ္ဆိုတဲ့အဓိပၼါယ္ကို ေဖၚေဆာင္တာပါပဲ...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;defun ဆိုတာက  define function ပါ... function တခုအျဖစ္ ေၾကျငာတာပါ...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;c: ဆိုတာကေတာ့ auto cad ရဲ့ command line မွာ auto CAD command တခုအေနနဲ့ my-first ဆိုတဲ့  function ကိုသံုးမယ္ဆိုတဲ့အဓိပၼါယ္ပါ..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;တကယ္လို့ c: ကို မသံုးခဲ့ရင္ေတာ့ global function တခုဆိုတဲ့ အဓိပၼါယ္သက္ေရာက္ပါတယ္....&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(alert "Hello World!") ကေတာ့ expression ပါ.. expression ဟာ function တခုနဲ့ အျမဲစပါတယ္... ဒီမွာေတာ့ alert ဆိုတဲ့ function ကိုသံုးထားပါတယ္ alert  ကိုသံုးျခင္းအားျဖင့္ message တခုကို simple dialog box တခုနဲ့ျပႏိုင္မွာျဖစ္ပါတယ္..... double quote ၂ ခုၾကားကရိွတာကေတာ့ string ပါ...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(princ) ကေတာ့ expression ကို return ျပန္ျပီး clean exit ျဖစ္ေစခ်င္လို့ပါ...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;) program ျပီးဆံုးပါျပီလို့ ေျကျငာပါတယ္...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;autoLisp ရဲ့ template ဟာ&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(defun c:function_name (/)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;(do something)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;လို့မွတ္ယူထားႏိုင္ပါတယ္....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ခင္မင္ေလးစားလ်က္..&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ခ်န္းခ်န္း(mg mine)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230671797584664602-4124175340754011871?l=chanlisp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chanlisp.blogspot.com/feeds/4124175340754011871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chanlisp.blogspot.com/2009/08/auto-cad-visual-lisp-auto-cad-visual.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/4124175340754011871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/4124175340754011871'/><link rel='alternate' type='text/html' href='http://chanlisp.blogspot.com/2009/08/auto-cad-visual-lisp-auto-cad-visual.html' title=''/><author><name>***Chan Chan***            (Mg Mine)</name><uri>http://www.blogger.com/profile/06394161288725792551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_9YA_STSCWAU/R201JR9OsDI/AAAAAAAAAD0/iJAZRRi_RTo/S220/vVfSQj54OJsvoyDGTRw-hUbipzMBMER3ecftxL8HuojKhVjaozP2dUmoGPsM31Jb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1230671797584664602.post-8030209629156320439</id><published>2009-08-19T08:09:00.001-07:00</published><updated>2009-08-19T08:18:15.982-07:00</updated><title type='text'></title><content type='html'>&lt;span style="color: rgb(255, 255, 153);"&gt;Lisp programming language...ဟာ ၁၉၅၈ မွာစတင္ေပၚေပါက္ခဲ့ပါတယ္...IBM က fortran ကို 1950 မွာစတင္ေဖၚထုတ္ခဲ့တာျဖစ္လို့ သူက ပထမ အေစာဆံုး programming language ဆိုရင္ lisp ဟာ ဒုတိယအေစာဆံုး high-level programming ဘာသာစကားတခုလို့ဆိုႏိုင္ပါတယ္... ဒီဘက္ေခတ္မွာေတာ့ c , vb , java တို့လို ဘာသာစကားေတြထြန္းကားလာတာနဲ့အမွ်  lisp ရဲ့ ေနရာလည္း နည္းလာပါတယ္.. ဒါေပမယ့္  artificial intelligence (AI) နဲ့ computer science ဘက္ပိုင္းမွာေတာ့ lisp ကိုလည္းခ်န္ထားခဲ့လို့မျဖစ္ပါဘူး..... lisp ကိုစတင္ခဲ့တဲ့ ရည္ရြယ္ခ်က္ကိုက အတြက္အခ်က္ပိုင္းအတြက္ အဓိကထားခဲ့ပါတယ္.... fortran ကို scientific နဲ့ engineering calculation ပိုင္းအတြက္ လိုပါပဲ...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;auto desk က Auto Cad ကိုစတင္ျပီး ၁၉၈၆ auto cad version 2.18 မွာ AutoLisp ကိုစတင္မိတ္ဆတ္ခဲ့ပါတယ္....&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;autolisp ဟာ XLisp ကို develop လုပ္ျပီးျဖစ္ေပၚလာတာပါ...autodesk က autolisp ကို release 13 (1995) အထိ develop လုပ္ျပီးတဲ့ေနာက္ ဆက္လက္ develop မလုပ္ေတာ့ပါ၀ူး.... autodesk က VitalLisp ကို ၀ယ္ျပီး visual Lisp လို့ နာမည္ေျပာင္းေပး ကာ ၁၉၉၇ release 14 မွာထည့္သြင္းခဲ့ပါတယ္... visual lisp ဆိုတာကေတာ့ autoLisp programming language ကို IDE, debugger, compiler ေတြထည့္ေပါင္းထားတာပါ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ဆက္လက္ေဖၚျပပါအံုးမည္.....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ခင္မင္ေလးစားလ်က္&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 153);"&gt;ခ်န္းခ်န္း(mg mine)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1230671797584664602-8030209629156320439?l=chanlisp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chanlisp.blogspot.com/feeds/8030209629156320439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://chanlisp.blogspot.com/2009/08/lisp-programming-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/8030209629156320439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1230671797584664602/posts/default/8030209629156320439'/><link rel='alternate' type='text/html' href='http://chanlisp.blogspot.com/2009/08/lisp-programming-language.html' title=''/><author><name>***Chan Chan***            (Mg Mine)</name><uri>http://www.blogger.com/profile/06394161288725792551</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp2.blogger.com/_9YA_STSCWAU/R201JR9OsDI/AAAAAAAAAD0/iJAZRRi_RTo/S220/vVfSQj54OJsvoyDGTRw-hUbipzMBMER3ecftxL8HuojKhVjaozP2dUmoGPsM31Jb.jpg'/></author><thr:total>0</thr:total></entry></feed>
