Author Topic: Default Load Directory  (Read 1850 times)

0 Members and 1 Guest are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12924
  • London, England
Default Load Directory
« on: January 19, 2010, 07:50:52 PM »
This may be me missing something, but where is the default load/save file stored?

i.e. The directory that appears when you use getfiled with a default argument = ""

Code: [Select]
(getfiled "File" [color=red]""[/color] "txt" 1)

Lee

ElpanovEvgeniy

  • Water Moccasin
  • Posts: 1569
  • Moscow (Russia)
Re: Default Load Directory
« Reply #1 on: January 20, 2010, 12:21:51 AM »
A default file name to use; can be a null string ("").

Code: [Select]
(getfiled "File" "test" "dwg" 1)The name of a file at once will be written down "test.dwg"

Lee Mac

  • Seagull
  • Posts: 12924
  • London, England
Re: Default Load Directory
« Reply #2 on: January 20, 2010, 04:17:34 AM »
Thanks Evgeniy,

I realise that a null string can be used, but if a null string is used, what determines which directory is displayed?

VovKa

  • Water Moccasin
  • Posts: 1632
  • Ukraine
Re: Default Load Directory
« Reply #3 on: January 20, 2010, 04:24:43 AM »
"" is equal to (getvar "DWGPREFIX")

ElpanovEvgeniy

  • Water Moccasin
  • Posts: 1569
  • Moscow (Russia)
Re: Default Load Directory
« Reply #4 on: January 20, 2010, 04:32:51 AM »
I always have in inquiry "My Documents" if the way is not specified.

ElpanovEvgeniy

  • Water Moccasin
  • Posts: 1569
  • Moscow (Russia)
Re: Default Load Directory
« Reply #5 on: January 20, 2010, 04:37:24 AM »
Really, at me a mistake!

If to set a name of a file without a way
(getfiled "File" "test" "dwg" 1)
Always we receive " My Documents "

If the way is left empty " "
We receive a current directory
(getvar ' DWGPREFIX)

Lee Mac

  • Seagull
  • Posts: 12924
  • London, England
Re: Default Load Directory
« Reply #6 on: January 20, 2010, 08:11:26 AM »
"" is equal to (getvar "DWGPREFIX")

Ahhh! of course.. thanks VovKa - I thought it would be something simple like that   ;-)

I apologise for the poor explanation