본문 바로가기
autocad

현재 ctb (펜세팅) 가져오기

by kmlab 2023. 6. 29.

Thanks Jeff !!

 

Getting the current layout CTB file?

I was wondering if there was a VAR that stored the current layout's CTB file. I want to return this variable and input it into a disiel datestamp with...

www.thecadforums.com


(defun c:getctb ()
(vl-load-com)
(setvar "users5"
  (vla-get-stylesheet
    (vla-item

      (vla-get-layouts
        (vla-get-activedocument
          (vlax-get-acad-object
    )
))(getvar "ctab"
  )))
)

)

 

반응형

'autocad' 카테고리의 다른 글

KMBLOCK.LSP  (0) 2023.09.11
AutoCAD Solid convert to Polyline  (0) 2023.07.13
선택한 시트만 하나의 도면으로 분리하여 저장하기  (0) 2023.06.29
KMPLOT.lsp_20230626  (0) 2023.06.26
KMPLOT_20230623  (0) 2023.06.23