프로그램
캐드 분류

리습 배우고있습니다. 간단한 copy ratate 합한 리습만드는중 질문드립니다.

컨텐츠 정보

  • 175 조회
  • 2 댓글
  • 0 추천
  • 0 비추천
  • 목록

본문

(defun c:c1() 
(setq target (ssget))
(setq n1 (getpoint "시작점 "))
(setq n2 (getpoint n1 "끝점 "))
(command "copy" target "" n1 n2 "" "rotate" "select" "l" "" n2 "r")
)

—————————————————————-

끝까지 실행이 안되는데요 이것 저것 바꿔봐도  어디가 문제인지 잘 모르겠습니다


—————————————————————————-
수야님의 도움으로 아래와같이 해결했습니다. ㅎ

(defun c:c1() 
(setq target (ssget))
(setq n1 (getpoint "시작점 "))
(setq n2 (getpoint n1 "끝점 "))
(command "copy" target "" n1 n2)
(command "rotate" "l" "" n2 "r" n2 pause)
(princ)
)

관련자료

댓글 2 / 1 페이지
전체 6,983 / 1 페이지
번호
제목
이름

최근글


새댓글


알림 0