Getfolder?

Getfolder?

Anonymous
Not applicable
467 Views
11 Replies
Message 1 of 12

Getfolder?

Anonymous
Not applicable
Is there a getfiled type of funciton which will allow a user to select a
folder? Maybe something which brings up a dialog similar to the left
side of the Windows Explorer program.

Thanks,
Jeff
0 Likes
468 Views
11 Replies
Replies (11)
Message 2 of 12

Anonymous
Not applicable
What release of AutoCAD?

If it's A2K, you can use (acet-ui-pickdir), if you can put
up with the lack of a default.

Jeff Sousa wrote:
>
> Is there a getfiled type of funciton which will allow a user to select a
> folder? Maybe something which brings up a dialog similar to the left
> side of the Windows Explorer program.
>
> Thanks,
> Jeff

--
/*********************************************************/
/* Tony Tanzillo Design Automation Consulting */
/* Programming & Customization for AutoCAD & Compatibles */
/* ----------------------------------------------------- */
/* tony.tanzillo@worldnet.att.net */
/* http://ourworld.compuserve.com/homepages/tonyt */
/*********************************************************/
0 Likes
Message 3 of 12

Anonymous
Not applicable
Jeff,

In the DOSLIB function library (www.mcneel.com), there is the trusty (dos_getdir)
function which allows you to specify a default start point.

Matt
stachoni@bellatlantic.net

On Tue, 19 Oct 1999 13:31:13 -0400, Jeff Sousa wrote:

>Is there a getfiled type of funciton which will allow a user to select a
>folder? Maybe something which brings up a dialog similar to the left
>side of the Windows Explorer program.
>
>Thanks,
>Jeff
0 Likes
Message 4 of 12

Anonymous
Not applicable
Tony Tanzillo wrote:

> If it's A2K, you can use (acet-ui-pickdir), if you can put
> up with the lack of a default.

More recent versions of 'acetutil.arx' provide this signature:

* (acet-ui-pickdir [ [ []]])<BR /> Displays a directory selection dialog.<BR /> <MESSAGE> will be displayed in the space above the directory tree<BR /> control.<BR /> <START-DIR> gives the initial directory to be selected.<BR /> <TITLE> will appear as the dialog title.<BR /> Returns a string containing the name of the selected directory, or NIL if<BR /> the dialog was canceled.<BR /> <BR /> I can forward the latest version of 'acetutil.arx' (1.35; check<BR /> '(acet-util-ver)') to anyone who would like an updated copy. It's a 37K .ZIP<BR /> file.<BR /> --<BR /> Frank Whaley<BR /> Autodesk, Inc.<BR /> few@autodesk.com<BR /> http://www.autodesk.com/expresstools<BR /> Express Tools - Your wish is our (command ...)
0 Likes
Message 5 of 12

Anonymous
Not applicable
Frank Whaley schrieb:
>
> Tony Tanzillo wrote:
>
> > If it's A2K, you can use (acet-ui-pickdir), if you can put
> > up with the lack of a default.
>
> More recent versions of 'acetutil.arx' provide this signature:



> I can forward the latest version of 'acetutil.arx' (1.35; check
> '(acet-util-ver)') to anyone who would like an updated copy. It's a 37K .ZIP
> file.



Why don't you place it inside a download-area ??

--
Achim Dabrunz
0 Likes
Message 6 of 12

Anonymous
Not applicable
Matt Stachoni wrote:

> In the DOSLIB function library (www.mcneel.com), there is the trusty (dos_getdir)
> function which allows you to specify a default start point.

I second that motion. Unlike other recommendations this solution does not require
the presense of purchased add-ons to run.

Terry
0 Likes
Message 7 of 12

Anonymous
Not applicable
Jeff,

What's wrong with these people?! 🙂

getfiled bit 4 (value 16) says:
16 (bit 4) If this bit is set, or if the default argument ends with a path
delimiter, the argument is interpreted as a path name only. The getfiled
function assumes that there is no default file name. It displays the path in
the Look in: line and leaves the File name box blank.

Would that work?
0 Likes
Message 8 of 12

Anonymous
Not applicable
But don't you have to select a file, not a folder to exit getfiled?

Jeremiah Famer wrote in message
news:7uo15n$f2i8@adesknews2.autodesk.com...
> Jeff,
>
> What's wrong with these people?! 🙂
>
> getfiled bit 4 (value 16) says:
> 16 (bit 4) If this bit is set, or if the default argument ends with a
path
> delimiter, the argument is interpreted as a path name only. The getfiled
> function assumes that there is no default file name. It displays the path
in
> the Look in: line and leaves the File name box blank.
>
> Would that work?
>
>
0 Likes
Message 9 of 12

Anonymous
Not applicable
I don't see DOS_GETDIR in DOSLIB14.ARX for R14 (ver 4.0), but it is
available for AK2 in DOSLIB2K.ARX (ver 4.3)

Is there a version of DOSLIB for R14 that has the DOS_GETDIR function. I
wrote my own function a while ago for R14 to get a subdirectory location
when I didn't see anything in DOSLIB to do it.

Mark McDonough
mmcdonough@sasaki.com

Terry W. Dotson wrote in message <380EEC4B.FFE185D5@dotsoft.com>...
>Matt Stachoni wrote:
>
>> In the DOSLIB function library (www.mcneel.com), there is the trusty
(dos_getdir)
>> function which allows you to specify a default start point.
>
>I second that motion. Unlike other recommendations this solution does not
require
>the presense of purchased add-ons to run.
>
>Terry
>
>
0 Likes
Message 10 of 12

Anonymous
Not applicable
Mark McDonough wrote:

> Is there a version of DOSLIB for R14 that has the DOS_GETDIR function.

Yes, a new DOSLIB14.ARX, actually up to version 4.4a I think. Check
http://www.mcneel.com and if you don't find it let me know and I'll email it
to you.

Terry
0 Likes
Message 11 of 12

Anonymous
Not applicable
Jeremiah Famer wrote:

> What's wrong with these people?! 🙂

There's nothing wrong with these people, they are striving for perfection and
don't settle for kludge.

Terry
0 Likes
Message 12 of 12

Anonymous
Not applicable
Thanks Terry, I'll revisit the mcneel site and download it.

--
Mark McDonough
mmcdonough@sasaki.com
http://www.sasaki.com

Terry W. Dotson wrote in message
news:38103071.DBA068E@dotsoft.com...
> Mark McDonough wrote:
>
> > Is there a version of DOSLIB for R14 that has the DOS_GETDIR function.
>
> Yes, a new DOSLIB14.ARX, actually up to version 4.4a I think. Check
> http://www.mcneel.com and if you don't find it let me know and I'll email
it
> to you.
>
> Terry
>
>
0 Likes