Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to bring up File Dialog in lisp command?

1 REPLY 1
Reply
Message 1 of 2
Anonymous
333 Views, 1 Reply

How to bring up File Dialog in lisp command?

I have this routine I'm working on. Is there a way, using the strings below,
to bring up the file dialog box in the location indicated? ("string to bring
up file dialog")
Thanks for any help,
--
Robert Asher
Staff Architect
George Butler Associates, Inc.

;;--------------------------------------------------------------------------
----
;;Plot To File
;;syntax: (GBA:PlotToFile )
;;--------------------------------------------------------------------------
----
(defun GBA:PlotToFile (argSheetSize / aq-Expert)
(if (= (getvar "cvport") 2)
(alert "Command not allowed in model space.")
(progn
(setq aq-Expert (getvar "expert"))
(setvar "expert" 2)
(command "psetupin"
"I:\\VIZ Group\\ADT_3\\GBA New Building Groups Files\\GBA
Plotting\\Plot Layouts.dwg"
argSheetSize
)
(setvar "expert" aq-Expert)
(command "-plot" "n" "" argSheetSize "" "y" ";string to bring up file
dialog" "n" "y")
)
)
)
1 REPLY 1
Message 2 of 2
jmodglin
in reply to: Anonymous

Robert, I think you may want to use the Function "GetFileD". It works similar to many other GetXXX functions. You can feed it certain flags and have the dialog box given a title. Look in the Customization help under GetFileD for more info. I hope this helps. Joshua Modglin

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost