Results 1 to 2 of 2

Thread: Trouble with Support File Search Paths

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2004-08
    Posts
    1
    Login to Give a bone
    0

    Question Trouble with Support File Search Paths

    I am trying to use a piece of the snip it add-on ffrom previous threads on the acad2014doc.lsp as shown below. it works but it keeps adding the same path every time I open a new session. I all I want it to add it once. Any ideas.

    Code:
    ; Say you want to make sure your users all have a certain tool palette.
    (setq tooldir "p:\\test\\1111\\4444"
          toolpaths (vlax-get-property (vlax-get-property (vlax-get-property (vlax-get-acad-object) 'Preferences) 'Files) 'ToolPalettePath)
    )
    (if (not (vl-string-search tooldir toolpaths))
      (vlax-put-property
        (vlax-get-property (vlax-get-property (vlax-get-acad-object) 'Preferences) 'Files)
        'ToolPalettePath
        (strcat (vl-string-right-trim ";" toolpaths) ";" tooldir)
      )
    )
    (setq tooldir nil toolpaths nil)
    Last edited by BlackBox; 2013-07-21 at 03:18 PM. Reason: Please use [CODE] Tags

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,714
    Login to Give a bone
    0

    Default Re: Trouble with Support File Search Paths

    Quote Originally Posted by JGARZA0422 View Post
    I am trying to use a piece of the snip it add-on ffrom previous threads on the acad2014doc.lsp as shown below. it works but it keeps adding the same path every time I open a new session. I all I want it to add it once. Any ideas.
    Firstly, stop adding code to AutoCAD owner files such as Acad2014.lsp, and Acad2014Doc.lsp, and instead add them to your own user-defined Acad.lsp, or AcadDoc.lsp as needed.

    Second, you might consider adding this as a Command (i.e., (defun c:* ...) in lieu of dropping it into your auto-loading files.

    Cheers
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. Replies: 30
    Last Post: 2013-07-10, 03:13 PM
  2. 2012: Disappearing Support File Search Paths
    By Darren Allen in forum AutoCAD Customization
    Replies: 30
    Last Post: 2013-04-03, 04:11 PM
  3. 2011: Windows Env Vars in Support File Search Paths
    By mcnamac in forum ACA General
    Replies: 0
    Last Post: 2011-03-03, 05:54 PM
  4. Easy way to set-up Support File Search Paths
    By joeswantek in forum AutoCAD Customization
    Replies: 3
    Last Post: 2006-07-11, 08:21 PM

Posting Permissions

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