• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

set the file search path in autocad 2006-2008

  • Thread starter Thread starter ghirosoft
  • Start date Start date

ghirosoft

Guest
Hi.
I tried to do a search in the forums but I couldn't find what I need.
I need to set through lisp the directories of "support file search paths".
I have a directory where we have all our cad things and I doubled it for the following reason:
to our company from today changed name and we find ourselves having to manage cartiglio with name and old logo and carts with new name and logo.
I was thinking of leaning on an existing txt file where I already have settings and I wanted to add the search path, I must be able to edit it directly from cad anyway.

with vlisp is there a command that goes to edit or set this directory?
Thank you.
 
(setq acadobject (vlax-get-acad-object))
(setq acadpref (vlax-get-property acadobject 'preferences))
(setq acadfiles (vlax-get-property acadpref 'files))
(setq acadsupp (vlax-get-property acadfiles 'supportpath))

; per esempio
(setq newacadsupp (strcat acadsupp (chr 59) "c:\bat"))
(vlax-put-property acadfiles 'supportpath newacadsupp)

bye
 
Thank you so much!
I'll try very soon, but now that I'm thinking...
what I add is added to the existing ones or is replaced?
 
Bye to all,
if I can afford and contribute, it would be more correct to replace:
Code:
(setq newacadsupp (strcat acadsupp (chr 59) "[B]c:\\bat[/B]"))
a
Code:
(setq newacadsupp (strcat acadsupp (chr 59) "[B]c:\bat[/B]"))
as the slash is digested by autocad only with another slash in front.
Excuse the intrusion.
hi acitano
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top