반응형 (vl-load-com)3 선택한 폴리선 면적 구하기 Lisp to calculate area of all closed polylines selectedHi there Autocadders world wide as well as Autodesk employees Can someone give me a lisp that calculates the area of all closed polylines selected, (in one operation) The area add command is okay, except if you have over a hundred closed polylines whoseforums.autodesk.com (vla-get-area x) 2025. 8. 20. 선택 세트 가져오기.Visual LISP Help help.autodesk.com (vl-load-com)(defun c:Example_ActiveSelectionSet() (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) ;; The following example returns the current selection set from the current drawing (setq sset (vla-get-ActiveSelectionSet doc))) (setq ss (vla-get-ActiveSelectionSet (vla-get-ActiveDocument .. 2025. 8. 20. 선택한 시트만 하나의 도면으로 분리하여 저장하기 ;; 시트를 선택한 다음, 도면번호, 도면명 순으로 선택하면 시트 범위의 요소를 도면명-도면번호.dwg 작성하기 ;; (시트블럭선택) -> (선택영역찾기) -> (도면명저장: 도면번호_도면명) -> (선택영역 뷰 이동) ;; -> (선택영역 저장: window로 선택) -> (command "-wblock") | (vla-WBlock) 실행 -> (선택영역뷰 0.3x 축소 뷰) ;; (vl-load-com) ;; (setq thisdrawing (vla-get-activedocument (vlax-get-acad-object))) ;; (vla-WBlock thisdrawing "c:/test.dwg" newSet) WBlock Method Writes out the given selection set .. 2023. 6. 29. 이전 1 다음 반응형