pipefitter72682240
2015-05-18, 12:10 AM
i have a lisp to export ifc, then open the ifc in bluebeam thus generating a 3Dpdf. However it requires the user to save the file at a default location with the filename 1.ifc. I would like for the "ifcexport" command to name the file without user input. Can anyone advise me on the correct syntax to use with ifcexport command? Or maybe I am going at this from the wrong direction? thanks
;;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)
) )
;;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)
) )