start up and support path...

Discussion in 'AutoCAD' started by avw_410, Mar 14, 2005.

  1. avw_410

    avw_410 Guest

    How can i add to the start-up suite and support search path using lisp?
     
    avw_410, Mar 14, 2005
    #1
  2. avw_410

    John Laidler Guest

    Here is a lisp that will add support paths, just add this to your
    acad2005doc.lsp or 'starup suite'.

    (defun CS:AddSupportPath (dir / tmp Cpath)
    (vl-load-com)
    (setq Cpath (getenv "ACAD")
    tmp (strcat ";" dir ";")
    )
    (if (not (vl-string-search dir cpath))
    (setenv "ACAD" (strcat Cpath ";" dir))
    )
    (princ)
    )

    (CS:ADDSUPPORTPATH "n:\\AutoCAD Support Files")
    (CS:ADDSUPPORTPATH "n:\\AutoCAD Support Files\\Acco Standard Toolbar")
    (CS:ADDSUPPORTPATH "n:\\AutoCAD Support Files\\docbar")
    (CS:ADDSUPPORTPATH "n:\\AutoCAD Support Files\\Acco Standard Toolbar\\Steel
    Shape Generator")
    (CS:ADDSUPPORTPATH "n:\\AutoCAD Support Files\\Acco Standard
    Toolbar\\Fastener")
    (CS:ADDSUPPORTPATH "n:\\AutoCAD Support Files\\layerexpress")(PRINC)
     
    John Laidler, Mar 14, 2005
    #2
  3. avw_410

    avw_410 Guest

    NICE, THANK YOU...


     
    avw_410, Mar 15, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.