Getting a Directory Name
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Getting a Directory Name

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
markash
Guest





Posted: Fri Apr 08, 2005 2:09 am    Post subject: Getting a Directory Name Reply with quote

Hello All:

Can anyone share a way that (using LISP) you can prompt a user for a folder (directory) name from a tree similar to the way you'd use getfiled to select a file?

Thanks...Mark

Back to top
T.Willey
Guest





Posted: Fri Apr 08, 2005 2:33 am    Post subject: Re: Getting a Directory Name Reply with quote

Here is a link to one. I use the one provided by Tony T.

http://discussion.autodesk.com/thread.jspa?messageID=3978192

Tim
Back to top
Adesu
Guest





Posted: Fri Apr 08, 2005 5:32 am    Post subject: Re: Getting a Directory Name Reply with quote

Hi markash,you can test my script

; od is stand for open drawing
; Design by Ade Suharna <mteybid@yuasabattery.co.id>
; 8 April 2005
; Program no.227/04/2005
; Edit by
(defun c:od (/ fol1 fol2 fil file ao doc vgd)
(vl-load-com)
(prompt "C:/YBI/Adesu....example type YBI")
(setq fol1 (getstring T "\nENTER MAIN FOLDER NAME: "))
(prompt "C:/YBI/Adesu....example type Adesu")
(setq fol2 (getstring T "\nENTER SUB FOLDER NAME: "))
(prompt "C:/YBI/Adesu/title.dwg....example type title")
(setq fil (getstring T "\nENTER FILE NAME: "))
(setq file (strcat "c:\\" fol1 "\\" fol2 "\\" fil))
(setq ao (vlax-get-acad-object))
(setq doc (vla-get-activedocument ao))
(setq vgd (vla-get-documents ao))
(vla-open vgd file)
(princ)
)



markash <nospam@address.withheld> wrote in message
news:8954684.1112911797203.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
Hello All:

Can anyone share a way that (using LISP) you can prompt a user for a
folder (directory) name from a tree similar to the way you'd use getfiled to

select a file?
Quote:

Thanks...Mark


Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB