Ã÷¾­CADÉçÇø

 ÕÒ»ØÃÜÂë
 ×¢²á

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

ËÑË÷
²é¿´: 2305|»Ø¸´: 11

[Ô´Âë] ¿ìËÙÌî³äµÄ¶àÑ¡ÎÊÌâ

[¸´ÖÆÁ´½Ó]
·¢±íÓÚ 2019-3-21 23:47:11 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ
±¾Ìû×îºóÓÉ alexmai ÓÚ 2019-3-22 00:35 ±à¼­

--------------------------------------------------------------------------------------------
Ã÷¾­ÕÒµ½Õâ¸ö×ÊÁÏ£¬µ«¶¼²»ÊÇÎÒÏëÒªµÄ£¬ÎÒÏëÉèÖá°µãÑ¡¡±ÎªµÚÒ»²½£¬¶ø²»ÊÇ¡°Ñ¡Ôñ¡±ÎªµÚÒ»²½
(defun C:kh (/ s1)                ;¿ìËÙÑ¡Ôñ¶ÔÏó£¬Ìî³äͼ°¸
   (setvar "cmdecho" 0)
     (setvar "hpassoc" 1)  ;¿ØÖÆÌî³äͼ°¸ÊÇ·ñ¹ØÁª(1:ÊÇ£»0:·ñ)
     (princ "\n¿ì½ÝÌî³ä£¬ÇëÑ¡ÔñÌî³äÇøÓò£º(***Ìø¹ýÔòΪʰȡÄÚ²¿µãÌî³ä£©")
    (if (setq s1 (ssget))
        (command "bhatch" "s" s1 "" "")
        (progn
            (princ "\nÇëÊ°È¡Ìî³äÄÚ²¿µã£º")
            (command "bhatch" pause)
         );progn
     );if
    (princ)
);defun


(defun C:H1 (/ s1 s2)
  (setvar "cmdecho" 0)
  (setvar "OSMODE" 0)
  (setvar "MEASUREINIT" 1)
  (setvar "MEASUREMENT" 1)
  (setvar "hpassoc" 1)   ;¿ØÖÆÌî³äͼ°¸ÊÇ·ñ¹ØÁª(1:ÊÇ£»0:·ñ)
  (princ
    "\n¿ì½ÝÌî³ä£¬ÇëÑ¡ÔñÌî³äÇøÓò£º(***Ìø¹ýÔòΪʰȡÄÚ²¿µãÌî³ä£©"
  )
  (if (setq s1 (ssget))
    (command "layer"  "m"      "G-SLAB-HATCH£¨°åÌî³ä£©"
      "c"  "11"      ""   "lw"
      "0.13"  ""      "l"  "Continuous"
      ""   ""      "_.bhatch"  "p"
      "ANGLE,_o"  "40"      "45"  "s"
      s1          ""      ""
     )
    (progn
      (princ "\nÇëÊ°È¡Ìî³äÄÚ²¿µã£º")
          (IF (vl-cmdf "layer"  "m"      "G-SLAB-HATCH£¨°åÌî³ä£©"
      "c"  "11"      ""   "lw"
      "0.13"  ""      "l"  "Continuous"
      ""   ""
             "_.bhatch" (getpoint) "p"  "ANGLE,_o" "40" "45" "")
     (princ "\nÇëÑ¡ÔñÌî³ä...")
     )
      )
  )
(princ)
)

--------------------------------------------------------------------------------------------
ΪÁË·½±ãÌî³ä£¬ÌØ´ËдÁËÕâ¸ö¿ì½ÝÌî³ä£¬¿ì½ÝÌî³äÎÒÉÏ´ÎÉèÖúõÄÄÚÈÝ£¬
µ«·¢¾õ²»ÔõôºÃÓ㬲»ÖªÎÊÌâ³öÏÖÄÄÀ

ÁíÍ⣬ÎÒÏë¶àѡʱÌî³äΪ¸÷×Ô¶ÀÁ¢µÄÌî³ä£¬
¶ø²»ÊÇ×éºÏΪһ¸öÕûÌåÌî³ä£¬ÈçºÎµ÷Õû£¿
(defun c:hh ()
  (setvar "cmdecho" 0)
  (command "undo" "be")
  (command "-color" "8")
  (if
      (princ "\nÇëÊ°È¡Ìî³äÄÚ²¿µã£º(***Ìø¹ýÔòΪѡÔñÌî³äÇøÓòÌî³ä£©")
      (setq pt (getpoint))
      (command "-bhatch" "O" "D" "L" "Y" pt "")
    (progn
      (princ "\n¿ì½ÝÌî³ä£¬ÇëÑ¡ÔñÌî³äÇøÓò")
      (setq ss (ssget '((0 . "POLYLINE,LWPOLYLINE,CIRCLE,ELLIPSE"))))
        (vl-load-com)
        (setq   i 0  )
        (setq num (sslength ss))
        (repeat num
            (setq entnam (ssname ss i))
            (command "-bhatch" "O" "D" "L" "Y" "s" ss "" "")
        )
      )
      (setq i (1+ i))
    )
  )
  (command "undo" "e")
  (princ)
)









"¾õµÃºÃ£¬¾Í´òÉÍ"
»¹Ã»ÓÐÈË´òÉÍ£¬Ö§³ÖÒ»ÏÂ
·¢±íÓÚ 2019-3-22 10:02:49 | ÏÔʾȫ²¿Â¥²ã
(defun c:tt5 ()
  (command "-color" "8")
        (setq t T)
  (while t
                (if
                        (setq pt (getpoint"\nÇëÊ°È¡Ìî³äÄÚ²¿µã£º(***Ìø¹ýÔòΪѡÔñÌî³äÇøÓòÌî³ä£©"))
                        (command "-bhatch" "O" "D" "L" "Y" pt "")
                        (progn
                                (princ "\n¿ì½ÝÌî³ä£¬ÇëÑ¡ÔñÌî³äÇøÓò")
                                (setq ss (ssget '((0 . "POLYLINE,LWPOLYLINE,CIRCLE,ELLIPSE"))))
                                (setq   i -1  )
                                (setq num (sslength ss))
                                (repeat num
                                        (setq entnam (ssname ss (setq i (1+ i))))
                                        (command "-bhatch" "O" "D" "L" "Y" "s" entnam "" "")
                                )
                        )
                )
        )
  (princ)
)

ÆÀ·Ö

²ÎÓëÈËÊý 1Ã÷¾­±Ò +1 ÊÕÆð ÀíÓÉ
alexmai + 1 ÔÞÒ»¸ö!

²é¿´È«²¿ÆÀ·Ö

 Â¥Ö÷| ·¢±íÓÚ 2019-3-22 10:27:54 | ÏÔʾȫ²¿Â¥²ã
start4444 ·¢±íÓÚ 2019-3-22 10:02
(defun c:tt5 ()
  (command "-color" "8")
        (setq t T)

        (setq t T)
  (while t

ÕâÁ½¾äÊÇʲôÒâ˼£¿

ÐÞ¸ÄÁËһϣ¬¸ã¶¨£¬Ð»Ð»£¡
(defun c:hh ()
  (setvar "cmdecho" 0)
  (command "undo" "be")
  (command "-color" "8")
  (if
        (setq pt (getpoint"\nÇëÊ°È¡Ìî³äÄÚ²¿µã£º\(***Ìø¹ýÔòΪѡÔñÌî³äÇøÓòÌî³ä\£©"))
        (command "-bhatch" "O" "D" "L" "Y" pt "")
     (progn
        (princ "\n¿ì½ÝÌî³ä£¬ÇëÑ¡ÔñÌî³äÇøÓò")
        (setq ss (ssget '((0 . "POLYLINE,LWPOLYLINE,CIRCLE,ELLIPSE"))))
        (setq   i -1  )
        (setq num (sslength ss))
        (repeat num
           (setq entnam (ssname ss (setq i (1+ i))))
           (command "-bhatch" "O" "D" "L" "Y" "s" entnam "" "")
        )
     )
  )
  (command "undo" "e")
  (princ)
)
·¢±íÓÚ 2019-3-22 09:19:37 | ÏÔʾȫ²¿Â¥²ã
hh:    (if
      (princ "\nÇëÊ°È¡Ìî³äÄÚ²¿µã£º(***Ìø¹ýÔòΪѡÔñÌî³äÇøÓòÌî³ä£©")
      (setq pt (getpoint))
      (command "-bhatch" "O" "D" "L" "Y" pt "")
Ìõ¼þÔõôÕâô¶à.
·¢±íÓÚ 2019-3-22 12:01:31 | ÏÔʾȫ²¿Â¥²ã
alexmai ·¢±íÓÚ 2019-3-22 10:27
(setq t T)
  (while t

Äã×Ô¼º¶Ô±ÈһϾÍÖªµÀÁË£¬ÓеĻ°¿ÉÒÔÑ­»·Ñ¡Ôñ£¬¿´ÐèÇó
·¢±íÓÚ 2024-8-9 22:26:36 | ÏÔʾȫ²¿Â¥²ã
start4444 ·¢±íÓÚ 2019-3-22 12:01
Äã×Ô¼º¶Ô±ÈһϾÍÖªµÀÁË£¬ÓеĻ°¿ÉÒÔÑ­»·Ñ¡Ôñ£¬¿´ÐèÇó

ºÜ°ô£¬¾ÍÊÇÈç¹û²»µãÒ²²»Ñ¡ÔñÍ˲»³öÑ­»·£¬Ôõô¼ÓÉÏÍ˳öÉèÖÃÄØ
·¢±íÓÚ 2024-8-10 06:55:47 | ÏÔʾȫ²¿Â¥²ã
ÊÔÏÂЧ¹û£¡£¡£¡ºÜºÃ£¡
·¢±íÓÚ 2024-8-10 14:17:01 | ÏÔʾȫ²¿Â¥²ã
±¾Ìû×îºóÓÉ lee50310 ÓÚ 2024-8-11 09:09 ±à¼­
muai2010 ·¢±íÓÚ 2024-8-9 22:26
ºÜ°ô£¬¾ÍÊÇÈç¹û²»µãÒ²²»Ñ¡ÔñÍ˲»³öÑ­»·£¬Ôõô¼ÓÉÏÍ˳öÉèÖÃÄØ

;;°´Q¼ü ==> À뿪
;;×ó»÷Êó==> ÌîÂúÄÚ²¿µã
;;°´enter¼ü,SPACE¼ü»òÓÒ»÷Êó==> Ñ¡ÔñÌî³äÇøÓò

ˆÌÐÐÖ¸Áî:tt6

±¾Ìû×ÓÖаüº¬¸ü¶à×ÊÔ´

ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕ˺ţ¿×¢²á

x
·¢±íÓÚ 2024-8-10 21:57:49 | ÏÔʾȫ²¿Â¥²ã
lee50310 ·¢±íÓÚ 2024-8-10 14:17
;;°´Q¼ü ==> À뿪
;;×ó»÷Êó==> ÌîÂúÄÚ²¿µã
;;°´enter¼ü,SPACE¼ü»òÓÒ»÷Êó==> Ñ¡ÔñÌî³äÇøÓò

¸Ðл½â´ð£¬ºÃÏñÓеãÎÊÌâ

±¾Ìû×ÓÖаüº¬¸ü¶à×ÊÔ´

ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕ˺ţ¿×¢²á

x
·¢±íÓÚ 2024-8-10 23:46:49 | ÏÔʾȫ²¿Â¥²ã
±¾Ìû×îºóÓÉ lee50310 ÓÚ 2024-8-10 23:56 ±à¼­
muai2010 ·¢íÓ� 2024-8-10 21:57
¸Ðл½â´ð£¬ºÃÏñÓеãÎÊÌâ

Ìî³äÒªÓзâé]µÄÎïów,
ÄãÒª®‹Ò»Ð©¾ØÐÍ¿ò »ò ˆAÐÍ¿ò ÔÚˆÌÐÐtt6³Ìʽ ücßxËûéT

±¾Ìû×ÓÖаüº¬¸ü¶à×ÊÔ´

ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕ˺ţ¿×¢²á

x
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | ×¢²á

±¾°æ»ý·Ö¹æÔò

СºÚÎÝ|ÊÖ»ú°æ|CADÂÛ̳|CAD½Ì³Ì|CADÏÂÔØ|ÁªÏµÎÒÃÇ|¹ØÓÚÃ÷¾­|Ã÷¾­Í¨µÀ ( ÔÁICP±¸05003914ºÅ )  
©2000-2023 Ã÷¾­Í¨µÀ °æȨËùÓÐ ±¾Õ¾´úÂ룬ÔÚδȡµÃ±¾Õ¾¼°×÷ÕßÊÚȨµÄÇé¿öÏ£¬²»µÃÓÃÓÚÉÌÒµÓÃ;

GMT+8, 2024-11-17 23:37 , Processed in 0.235124 second(s), 29 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí