OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: BazzaCAD on July 02, 2009, 11:51:16 AM

Title: Does the File Dialog need an "Asynchronous" option
Post by: BazzaCAD on July 02, 2009, 11:51:16 AM
I'm trying to run this code:

Code (autolisp) Select

(defun c:AddCalcLink_opnLink_cmdOK_OnClicked (/ row)
  (setq FileLink (dcl_FileExplorer_GetPathName AddCalcLink_opnLink_FileExplorer))
  (dcl_Form_Close AddCalcLink_opnLink)
  (setq PT (getpoint "\nPick point: "))
)


And the code is hanging on the getpoint.... I'm I missing something?
Title: Re: Does the File Dialog need an "Asynchronous" option
Post by: owenwengerd on July 02, 2009, 12:17:32 PM
You need to call (getpoint) *after* (dcl_Form_Show) returns.
Title: Re: Does the File Dialog need an "Asynchronous" option
Post by: BazzaCAD on July 02, 2009, 12:32:52 PM
Cool thx. I know I was doing something easy/stupid wrong.. :)