Page 1 of 1
Browse Dialogs
Posted: Tue Jun 27, 2006 6:57 am
by jimprow
I'm developing an install for a 3rd party product to run on top of AutoCAD. This requires me to prompt fo a destination directory for our software and then prompt for the location of AutoCAD.
I copied the Destination Directory dialog and modified the text but is is still trying to tag the Product name to the end of the path defined by the browse button. How can I disable that extra info being tagged on to the end of the path?
Posted: Tue Jun 27, 2006 11:40 am
by CandiceJones
Just dissociate the control from the TARGETDIR variable, and assign it to another variable.
Posted: Tue Jun 27, 2006 2:16 pm
by jimprow
I did that when I copied the diialg and renamed the text on the dialog. I can't find the TARGETDIR defined on the of the object properties or characteristics. It shoould now be using a variable named AcadFolder.
Posted: Tue Jun 27, 2006 3:52 pm
by casic
You can also use the File Dialog Plugin which offers a path selector dialog too. More information can be found here:
http://www.installaware.com/forum/viewtopic.php?t=503
cu
Markus
Posted: Tue Jun 27, 2006 5:48 pm
by CandiceJones
When you say it should, did you correctly enter that variable in the "Writes Values to Variable" field?
Posted: Mon Jul 03, 2006 5:01 pm
by jimprow
I was able to get it working using the File Dialog Plugin method (thanks Markus). I would like to understand the other mathod also. I did enter the AcadFolder variable in the Writes Values to Variable" field for the edit control.
Posted: Mon Jul 03, 2006 5:09 pm
by CandiceJones
Great. Did you also pre-declare this variable before calling the dialog?
Posted: Wed Jul 05, 2006 7:45 am
by jimprow
Yes I set it $PROGRAMFILES$ early in the script (after the globals were defined). I figured this would be a good starting point when browsing.
Posted: Wed Jul 05, 2006 9:06 am
by CandiceJones
If you don't mind uploading your project (dialogs, MIA script, MPR project), I'll have this taken a look at, and let you know what the problem was!