;;;获取AUTOCAD临时文件夹路径;
(defun Example_TempFilePath ()
(VL-LOAD-COM)
(setq AcadObject
(vlax-get-acad-object)
AcadDocument (vla-get-ActiveDocument
AcadObject)
mSpace (vla-get-ModelSpace
AcadDocument)
)
(setq preferenceSel (vla-get-Preferences
AcadObject))
(setq fileSel (vla-get-Files
preferenceSel))
(setq currTempFilePath
(vla-get-TempFilePath fileSel))
(princ "TempFilePath的当前值为:")
(princ currTempFilePath)
)
;;;采纳吧...................................
温馨提示:内容为网友见解,仅供参考