Author Topic: saveas and closing a dwg  (Read 6182 times)

0 Members and 1 Guest are viewing this topic.

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
saveas and closing a dwg
« Reply #15 on: April 21, 2005, 11:31:30 AM »
Quote
Note 1 -- I need to check for the directory BIND, if it's there, great, continue the code. If not, then make the directory to save the dwg to.


Code: [Select]


 ;; # 1
 ;; if directory 'bind' does not exist then create
 (if (not (vl-file-directory-p "c:\\SomePathTo\\Bind"))
   (vl-mkdir "c:\\SomePathTo\\Bind")
   )


Quote
Note 2 -- I need to check for an existing dwg w/ same name. If it exists, over write. If not, great, continue code.

Refer to post directly above this one. *grin*
TheSwamp.org  (serving the CAD community since 2003)

Hangman

  • Guest
saveas and closing a dwg
« Reply #16 on: April 21, 2005, 11:36:50 AM »
Mark,
Don't you have to do a vl-load or something like that somewhere in the beginning to have the vl- commands work ???

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
saveas and closing a dwg
« Reply #17 on: April 21, 2005, 11:41:38 AM »
Quote from: Hangman
Mark,
Don't you have to do a vl-load or something like that somewhere in the beginning to have the vl- commands work ???

Yes you do, sorry about that. :oops:
TheSwamp.org  (serving the CAD community since 2003)