OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: pcmanojkumar on October 31, 2011, 05:28:25 AM

Title: Custom File dialog box
Post by: pcmanojkumar on October 31, 2011, 05:28:25 AM
Hi all,

Can you please tell me, how we can give a default path and filename while intailize the custom File dialog box; is there is any 'set' functions?.

Eg.

(defun c:Forms_AccFileDlg_OnInitialize (/)
  (setq new_dbPath (vl-registry-read "HKEY_CURRENT_USER\\Software\\Autodesk\\DASO" "DasoDBpath"))
    (if (and new_dbPath (/= "" new_dbPath))
       (if (findfile new_dbPath)
           (dcl_Control_Set?????? ???????? ??????)
Regards,
Manoj
Title: Re: Custom File dialog box
Post by: Fred Tomke on October 31, 2011, 05:56:35 AM
Hello, and welcome to this board. Please have a look at here (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/Form/Show.htm). The Show-method of CustomFileDialog recognizes the given argument as the starting path.

Regards, Fred
Title: Custom File dialog box
Post by: pcmanojkumar on October 31, 2011, 06:06:17 AM
Thanks buddy... I am learning the Open DCL; Its cool....