본문 바로가기
autocad

Find to Edit "acad.pgp" file by Lisp

by kmlab 2025. 6. 18.

(
(setq pgp "acad.pgp")
(setq ph (findfile pgp)) ;"C:\\Users\\???\\AppData\\Autodesk\\AutoCAD 2023\\R24.2\\kor\\support\\acad.pgp"
(startapp (strcat "notepad " ph))
(setq ph (vl-string-right-trim pgp ph)) ;"C:\\Users\\???\\AppData\\Autodesk\\AutoCAD 2023\\R24.2\\kor\\support\\"
(startapp (strcat "explorer " "\"" ph))
)

(vl-string-left-trim "a" "aaaaaa aaaaaa aaaaa")
" aaaaaa aaaaa" ; 공백이 나올 때까지 "a" 삭제.

 

반응형

'autocad' 카테고리의 다른 글

Deleting a Selection Set  (0) 2025.06.20
호출 함수 결과 값으로 리스트를 변수에 저장하기  (0) 2025.06.19
OFF InfoCenter  (0) 2025.06.18
Split List  (0) 2025.06.02
TEXT 추출 후 좌표,내용 리스트로 저장  (0) 2025.05.27