Does the File Dialog need an "Asynchronous" option

Started by BazzaCAD, July 02, 2009, 11:51:16 AM

Previous topic - Next topic

BazzaCAD

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?
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

owenwengerd

You need to call (getpoint) *after* (dcl_Form_Show) returns.
Owen Wengerd (Outside The Box) / ManuSoft

BazzaCAD

Cool thx. I know I was doing something easy/stupid wrong.. :)
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom