我在网上找到了这段代码,用于将 AutoCAD DWG 中的选择内容保存为项目文件夹中的 DXF 格式。我不太熟悉 AutoLISP。我需要更改什么才能将所有这些图纸保存在名为“CNC Parts”的子文件夹中?
;save selection as dxf
(defun c:DQ ()
(setq dxfname (getstring 1 "\nFilename="))
(command "SAVEAS" "DXF" "VERSION" "2010" "OBJECTS" "CROSSING" "\\" "\\" "" "16" (strcat (getvar "dwgprefix") dxfname) "FILEDIA" "1")
); function
最佳答案
只需在路径和文件名之间添加子路径
(command "SAVEAS" "DXF" "VERSION" "2010" "OBJECTS" "CROSSING" "\\" "\\" "" "16" (strcat (getvar "dwgprefix") "CNC Parts\\" dxfname) "FILEDIA" "1")
关于AutoCAD - 在子文件夹中另存为 DXF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49855950/