Pull down menu, how to set up path

Pull down menu, how to set up path

Anonymous
Not applicable
811 Views
1 Reply
Message 1 of 2

Pull down menu, how to set up path

Anonymous
Not applicable

I have been using AutoCAD for many years and have set up several pull down menus to retrieve blocks of flanges and casing and so forth. I have all on my hard drive which I have no problems setting up the path where the blocks are located and it will insert them into my drawing. Well now, they want me to use a Network drive so I can share these menus with coworkers. The problem I have is that I can't seem to get the path correct.

on my C: drive I have a folder called Work, and then subfolders of this to get block FLG_2_1_16-2K

example: (this works fine for my C: drive.

[->Thru-Bolt]
                   [->2,000 psi]
                     [2-1/16]^c^c-insert c:/work/patterns/Flanges/Thru-Bolt/FLG_2_1_16-2K;\1;;

The new Network path is:

\\HTNPFSV01CL2P.ccc.coopcam.com\HQENG_surface$\CamSurfaceCAD  where CamSurfaceCAD is my new folder to replace my Work folder on the C: drive.

the folder on this Network drive is called CamSurfaceCAD and I will have subfolders like "Patterns/Flanges"

When I try to replace C:/ with the new Network drive, it will not retrieve the file.

Would someone know what format to use.

existing path: Work/Patterns/Flanges/Thru-Bolt/

new path: CamSurfaceCAD/Patterns/Flanges/Thru-Bolt

I have no one to turn to here at work.

thank you for any advice you can give.

Ken

0 Likes
Accepted solutions (1)
812 Views
1 Reply
Reply (1)
Message 2 of 2

scot-65
Advisor
Advisor
Accepted solution
One possibility:

Outside AutoCAD:
Map a drive letter to "CamSurfaceCAD".
We will use L:\ for the example below (a BAT file can be used to populate
other workstations where initial setup).

Inside AutoCAD:
There can be 2 methods depending how involved your folder structure is set up.

a) Simple folder structure good for up to 5 support paths +/-.
IMO Any more than 5 is too cumbersome to set up however, I did see a few
examples that had 20+ paths added to the SFSP using LISP.
Declare these paths in the Support File Search Path. Command OPTIONS.

b) Create session Gremlin(s) that is a prefix to the file folders (SFSP not needed!):
(setq %PatFlaThru% "L:/Patterns/Flanges/Thru-Bolt/")
Repeat as needed for other subfolders.
Write to acaddoc.lsp or MyMenu.MNL for automatic loading when editor is
first opened (see AutoCAD documentation for further information).

Now in the CUI command list, command property macro line:
^C^C-INSERT;(strcat %PatFlaThru% "NameOfDesiredBlock");\1;;
In the future, when path geometry changes, revise the Gremlins
and you are good to go.

[Method 'b' will not work for LT].

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.