기능과 목적에 따른 리습 문장 예제 입니다

 

참고하여 자신에게 맞게 리습을 작성바랍니다

 

링크는 상세 설명 페이지 입니다

기능 목적 예제문
각도 정의 (두점)
https://autocadlisp.tistory.com/4
(setq p10 (polar p1 ang d))
각도 환산 라디안 도
https://autocadlisp.tistory.com/5
( angtos 0.785398 0 4)
문자를 실수로 변환
https://autocadlisp.tistory.com/6
(atof abc)
실수를 소숫점이 없는 실수로 변환하기
https://autocadlisp.tistory.com/7
(setq dre (fix dre) dre (float dre))
실수를 정수로 변환
https://autocadlisp.tistory.com/7
(setq dre (fix dre) dre (float dre))
알림창 띄우기
https://autocadlisp.tistory.com/3
 (setq mesg 
(strcat " Pulley1= Ø" (rtos dl 2 2) "   Pulley2= Ø" (rtos ds 2 2) "   Distance of Center= " (rtos cen 2 2) "  Belt length= " (rtos Len 2 2) "  " )
 (alert mesg)
오스냅 제어
https://autocadlisp.tistory.com/2
(setq osm (getvar "osmode"))  
(setvar "osmode" 0 )
(그리기나 삽입 실행 문장)  

(setvar "osmode" osm)   
정수를 실수로 변환
https://autocadlisp.tistory.com/8
(setq dre (fix dre) dre (float dre))

 

 

 

 

 

 

 

 

 

 

 

 

 

CadBOX

AutoCAD를 빠르고 편리하게 하는 Autolisp 기능들의 모음집 CadBOX의 내용과 사용법 소개

atbox.tistory.com

 

'리습 예제 1부' 카테고리의 다른 글

도면번호 형식 문자 검색  (0) 2022.09.05
블록 존재여부로 작도 삽입 if 문  (0) 2022.08.19
리습 작도전 화면 크기 제어  (0) 2022.08.19
라인타입 로드하기  (0) 2022.08.13
메인리습 서브리습  (0) 2022.08.08

+ Recent posts