Include " when using STRCAT
Dear coders I am trying to include " when using strcat Afaik you need to use \ or / in combinatiuon with extra " to get "something here" when using strcat So I want to do this (strcat "sometext" "" EXTRATEXT"" ) As you can see the EXTRATEXT needs to be in
www.cadtutor.net
to get a " you have to use "\""
;; 내부 도각 블럭을 외부에 있는 수정된 도각 블럭으로 교체하는 리습
;;
(defun KM:oldBLOCKtoNEW ( oldblockname newblockname / obn nbn pth obnpthnbn )
(setq obn oldblockname nbn newblockname)
(setq pth (getvar "DWGPREFIX"))
(setq obnpthnbn (strcat "\"" obn "=" pth nbn "\""))
(command "-insert" obnpthnbn "y")
(command \e "resume")
)
;; 추가로 기존 블럭 이름을 유지하므로 새이름으로 블럭이름을 수정하는 모듈 개발 필요.
;;
(defun c:obn ( ) ;; 예제명령임.
;;내부 블럭인 Sheet_A1_R...을 동일한 폴더의 수정된 도각 파일인 Sheet_A1_AFC...로 교체함.
(KM:oldBLOCKtoNEW "Sheet_A1_R_Diagrams - Sheet_A1_R_Diagrams-3890249-방화구획 계획도-1" "Sheet_A1_AFC - Sheet_A1_AFC-4222207-방화구획 계획도-1")
(princ obnpthnbn)
)
'autocad' 카테고리의 다른 글
문자 연결하기 (0) | 2024.12.18 |
---|---|
Parse Numbers; Get string from *TEXT (0) | 2024.12.13 |
To change true color to ACI(AutoCAD Color Index) of Layers (0) | 2024.08.29 |
layouts 폴더에 ExportLayout 저장하기 (0) | 2024.08.13 |
Fix Dimstyles After Revit exporting to Cad (0) | 2024.08.01 |