Menu Path for Blocks?

Discussion in 'AutoCAD' started by Jade r, Jan 22, 2004.

  1. Jade r

    Jade r Guest

    Hi

    In my menu (which works) I have;
    (command "-insert" "c:/Company Standards/CAD Library/Blocks/northarrow"
    pause "" "" "")

    now i want to change the link it to set the path to our shared drive of the
    same path ecept for server and lettered drive...so i tried

    (command "-insert" "//servername/P/Company Standards/CAD
    Library/Blocks/northarrow" pause "" "" "")

    but doesn't seem to work...its saying

    can't find file....I made sure there was a file in there...

    any suggestions

    Thanks

    J
     
    Jade r, Jan 22, 2004
    #1
  2. Jade r

    Jim Claypool Guest

    The easiest way is to add the path to the support file search path and take
    it out of the routine.
     
    Jim Claypool, Jan 22, 2004
    #2
  3. Jade r

    ECCAD Guest

    In startup do:
    (setenv "network_drive" "j://servername/P/Company Standards/CAD Library/")
    In Menu do:
    (command "-insert" (strcat (getenv "network_drive") "Blocks/northarrow") pause "" "" "")
    Be sure to include final "/" in setenv, or add it to "/Blocks..
    Bob
     
    ECCAD, Jan 22, 2004
    #3
  4. Jade r

    Jade r Guest

    Where is the "startup"?

    No problem putting in the menu......
     
    Jade r, Jan 22, 2004
    #4
  5. Jade r

    ECCAD Guest

    For R2000/R2004: In file \support\acad2000.lsp
    For R14: In file \support\acadr14.lsp
    Bob
     
    ECCAD, Jan 22, 2004
    #5
  6. Jade r

    ECCAD Guest

    Correction:
    For R2000/R2002 - \support\acad2000.lsp
    For R2004 - \support\acad2004.lsp
    For R14 - \support\acadr14.lsp
    Just add the (setenv... just before the (princ) on the end.

    Bob
     
    ECCAD, Jan 22, 2004
    #6
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.