+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
  1. #11
    Super Member
    Computer Details
    tombu's Computer Details
    Operating System:
    Windows 7 64-bit
    Computer:
    Dell
    Discipline
    Civil
    tombu's Discipline Details
    Occupation
    Design Analyst
    Discipline
    Civil
    Details
    Small Street & Stormwater projects. Traffic Calming and other issues.
    Using
    Civil 3D 2018
    Join Date
    Dec 2010
    Location
    Tallahassee, FL USA
    Posts
    729

    Default

    Registered forum members do not see this ad.

    Code:
    (defun AddSupportPath (dir / Cpath Uname)
    ; http://forums.augi.com/showthread.php?163327-Adding-support-file-search-path-as-the-first-(LISP)&p=1298948#post1298948
      (setq Cpath (getenv "ACAD") Uname (getenv "Username") dir (vl-string-subst Uname "%Username%" dir))
      (or (vl-string-search (strcase dir) (strcase Cpath)) (setenv "ACAD" (strcat Cpath ";" dir)))
      (princ)
    )
    Checks to see if dir is already in the path and adds it if not.
    Ex.
    Code:
    (AddSupportPath "G:\\BeaufordT\\Autocad\\Application Data\\Customization")
    Layer 0 for ByBlock Block entities, everything else ByLayer. So many issues can be solved with good templates.

  2. #12
    Luminous Being
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    9,815

    Default

    Registered forum members do not see this ad.

    Something else that may work its un documented came across it somewhere here. You can add .. to the end of a directory and autocad interprets that as include all subdirectorys below. I have used it so know it works, will check 2016 & 2018.

    eg G:\\acad_blocks..
    v's
    G:\\acad_blocks\\car
    G:\\acad_blocks\\pipes
    G:\\acad_blocks\\lisp
    A man who never made mistakes never made anything

Similar Threads

  1. Support file search path
    By mdbdesign in forum AutoCAD General
    Replies: 6
    Last Post: 8th Oct 2009, 02:14 pm
  2. AutoCAD's Support File Search Path
    By CAD Panacea in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 4th Sep 2009, 05:50 am
  3. Support File Search Path
    By mcguirepm in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 23rd Jan 2009, 06:11 pm
  4. Support File Search Path via VBA
    By ZenCad1960 in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 5th Nov 2008, 03:10 pm
  5. Support File Search Path
    By christ0j in forum AutoCAD Drawing Management & Output
    Replies: 7
    Last Post: 3rd Feb 2006, 06:34 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts