我有一个lisp导出ifc,然后在bluebeam中打开ifc。但是,它要求用户将文件保存在文件名为1的默认位置。国际金融公司。我希望“ifcexport”命令在没有用户输入的情况下命名文件。有人能告诉我使用ifcexport命令的正确语法吗?
- ;;turn off insulation and export ifc
- (defun c:b3op (/ sset)
- (COMMAND "UNDO" "M")
- (delfile "C:\\Users\\Public\\Documents\\Autodesk\\Fabrication 2014\\McK 3D Fabrication Database\\1.ifc")
- (setq sset (ssget))
- (Executescript "C:/Autodesk Fabrication/PMSHARED/scripts/McK Pipe Scripts/inoff.cod" sset)
- (command "ifcexport" sset "")
- (COMMAND "UNDO" "b")
- (startapp "explorer.exe" "C:\\Users\\Public\\Documents\\Autodesk\\Fabrication 2014\\McK 3D Fabrication Database\\1.ifc")
- (princ)) ; end/clear
- (defun delfile (file)
- (vl-load-com)
- (if (vl-file-systime file)
- (vl-file-delete file)
- )
- )
- http://www.xtracad.com/forum/index.php/topic,13133.0.html
|