¸®½À °Á - Ȱ¼ºÈµµ¸é(ÇöÀçµµ¸é) º¯°æ ÇÔ¼ö.
º» °Á´ ¾ÆÅ°¿ÀÇǽº(±èÈñÅÂ)¿¡ ÀÇÇØ ¸¸µé¾î Á³À¸¸ç ¾î¶°ÇÑ À¥À̳ª ÃâÆÇ¹°¿¡ ¾ÆÅ°¿ÀÇǽº(±èÈñÅÂ)ÀÇ µ¿ÀǾøÀÌ ¿Ã¸®´Â °ÍÀ» Çã¶ôÇÏÁö ¾Ê½À´Ï´Ù. |
|
||
|
||
(set-activedoc µµ¸éÀ̸§)
|
||
(defun set-activedoc (a / eee) (vlax-for item (vla-get-Documents (vlax-get-acad-object)) (if (= (strcase a) (strcase (vlax-get-property item 'name))) (setq eee item)) ) (if (and eee (/= (strcase a) (strcase (vla-get-name (vla-get-activedocument (vlax-get-acad-object)))))) (vla-put-ActiveDocument (vlax-get-acad-object) eee) ) )
(defun set-activedoc (a / eee) ;; ¿ÀÅäijµåÀÇ µµÅ¥¸ÕÆ®Áß (vlax-for item (vla-get-Documents (vlax-get-acad-object)) ;; ¸®ÅÏ ¹ÞÀº µµ¸é¸í°ú °°Àº µµÅ¥¸ÕÆ®¸¦ ã¾Æ ¸¸¾à ÀÖ´Ù¸é µµÅ¥¸ÕÆ®¸¦ eee ¿¡ ÀúÀåÇÑ´Ù. (if (= (strcase a) (strcase (vlax-get-property item 'name))) (setq eee item)) ) ;; ¸®ÅÏ ¹ÞÀº µµ¸é¸íÀÇ µµÅ¥¸ÕÆ®°¡ Á¸ÀçÇϰí ;; ±× µµÅ¥¸ÕÆ®°¡ ÇöÀç Ȱ¼ºÈ(ÇöÀçµµ¸é) µÇ¾îÀÖÁö ¾Ê´Ù¸é (if (and eee (/= (strcase a) (strcase (vla-get-name (vla-get-activedocument (vlax-get-acad-object)))))) ;; ÇØ´ç µµÅ¥¸ÕÆ®(µµ¸é)À» Ȱ¼ºÈ(ÇöÀçµµ¸é) ÇÑ´Ù. (vla-put-ActiveDocument (vlax-get-acad-object) eee) ) )