Menu Path for Blocks?

Jade r

Usenet Archive
Joined
Jan 21, 2004
Messages
3
Reaction score
0
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
 
The easiest way is to add the path to the support file search path and take it out of the routine.
 
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
 
Where is the "startup"?

No problem putting in the menu......
 
For R2000/R2004: In file \support\acad2000.lsp
For R14: In file \support\acadr14.lsp
Bob
 
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
 

Member Recommended

Latest threads

Back
Top