Block Paths

#1
Is there a way to configure/setup multiple block paths without using the Options dialogue?
Or can I specify a path, then with possibly a switch tell the system to include ALL nested sub folders?

I have over 40 separate paths to various block libraries and it is a tad tedious adding all of these manually.
eg:
E:\CustomCad\Symbols\Piping\ANSI B16.9\SWFF-#150
E:\CustomCad\Symbols\Piping\ANSI B16.9\SWRF-#150
E:\CustomCad\Symbols\Piping\ANSI B16.9\SWRF-#300
E:\CustomCad\Symbols\Piping\ANSI B16.9\SWRF-#400
E:\CustomCad\Symbols\Piping\ANSI B16.9\SWRF-#600



Steve

Re: Block Paths

#3
QuanNguyen wrote:
Wed Oct 21, 2020 10:11 pm
Hi,
You can start with (setenv "ACAD" "list of path") and (getenv "ACAD")
For example:

Code: Select all

(setq path "c:\\temp\\")
(setenv "ACAD" (strcat path ";"(getenv "ACAD")))
I assume you are suggesting a 'lisp' routine can be used to 'add/append' the additions?
Here is the result for (getenv "ACAD") my current Icad 9.0
  • Command: (getenv "ACAD")

    "C:\Program Files\CMS\IntelliCAD 9.0 Premium Edition Plus\;C:\Users\Stylemark\Documents\;C:\Users\Stylemark\AppData\Roaming\CMS\IntelliCAD9.0x64\Color;C:\Program Files\CMS\IntelliCAD 9.0 Premium Edition Plus\Fonts;C:\Program Files\CMS\IntelliCAD 9.0 Premium Edition Plus\Help;C:\Program Files\CMS\IntelliCAD 9.0 Premium Edition Plus\Patterns;C:\Program Files\CMS\IntelliCAD 9.0 Premium Edition Plus\Patterns\ISO;C:\Users\Stylemark\AppData\Roaming\CMS\IntelliCAD9.0x64\;E:\CustomCad\menus;E:\CustomCad\bitmaps;E:\CustomCad\Symbols\Welding Symbols;E:\CustomCad\menus\testing folder;E:\CustomCad\LSP-DCL FILES;E:\CustomCad;E:\CustomCad\Symbols;E:\CustomCad\WiseysSteelShapes;E:\CustomCad\Symbols\Hydraulic Symbols;E:\CustomCad\Symbols\RSA's;E:\CustomCad\Symbols\Electrical Symbols;E:\CustomCad\Symbols\Electrical Symbols\Cable Tray;E:\CustomCad\Symbols\Piping\ANSI B16.9;E:\CustomCad\Symbols\Piping\DIM FILES;E:\CustomCad\Symbols\Piping\ANSI B16.9\END CAPS;E:\CustomCad\Symbols\Piping\ANSI B16.9\EQUAL TEE's;E:\CustomCad\Symbols\Piping\ANSI B16.9\FSSW;E:\CustomCad\Symbols\Piping\ANSI B16.9\FSTF;E:\CustomCad\Symbols\Piping\ANSI B16.9\RED-TEE;E:\CustomCad\Symbols\Piping\ANSI B16.9\LRELBOWS;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrf-s-#150;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrf-s-#300;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrf-s-#400;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrf-s-#600;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrf-s-#900;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrf-s-#1500;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrf-s-#2500;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrtj-s-#150;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrtj-s-#300;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrtj-s-#400;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrtj-s-#600;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrtj-s-#900;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrtj-s-#1500;E:\CustomCad\Symbols\Piping\ANSI B16.9\wnrtj-s-#2500;E:\CustomCad\Symbols\Piping\ANSI B16.9\RF-BLINDS;E:\CustomCad\Symbols\Piping\ANSI B16.9\RTJ-BLINDS;E:\CustomCad\Symbols\Piping\ANSI B16.9\SPRIAL GASKETS;E:\CustomCad\Symbols\Piping\ANSI B16.9\Ring Joint Gaskets;E:\CustomCad\Symbols\Piping\ANSI B16.9\CONCENTRIC RED's;E:\CustomCad\Symbols\Piping\ANSI B16.9\Eccentric red's;E:\CustomCad\Symbols\Electrical Symbols\T&B Ladder Rack;E:\CustomCad\Symbols\Perenco Borders\BORDERS;E:\CustomCad\Symbols\Perenco Borders\BORDERS\old borders;C:\Users\Stylemark\Documents\IntelliCAD9.0x64\Print Styles;C:\Users\Stylemark\AppData\Roaming\CMS\IntelliCAD9.0x64\Spelling;C:\Users\Stylemark\AppData\Roaming\CMS\IntelliCAD9.0x64\Templates;E:\Stylemark Designs\$SV FILES;C:\Users\STYLEM~1\AppData\Local\Temp;C:\Users\Stylemark\Documents\IntelliCAD9.0x64\Printers;C:\Users\Stylemark\Documents\IntelliCAD9.0x64\Textures;C:\Users\Stylemark\Documents\IntelliCAD9.0x64\Linetypes"
    Command: '_PMTHIST

While this may add the new paths, still to be attempted, will they be added to the relevant section in the 'options/paths' dialogue?
Also will this be a permanent addition? or would the lisp need to be run in each cad session?

S.