pull down menu file path does not work with new network drive

pull down menu file path does not work with new network drive

Anonymous
Not applicable
992 Views
8 Replies
Message 1 of 9

pull down menu file path does not work with new network drive

Anonymous
Not applicable

I have a pull down menu i'll call MyFlanges, right now on my hard drive, I have the code;

^c^c-insert C:/Work/Patterns/Flanges/Flange2-10k

this will insert my flange called Flange2-10k.dwg.

Problem;

They gave me a dedicated network drive to put my files on so I need to change the paths to make them work.

the network path is: \\HTNPFSV01CL2P.ccc.coopcam.com\HQENG_surface$\CamSurfaceCAD\Patterns

so substituting this path for my old one:

^c^c-insert \\HTNPFSV01CL2P.ccc.coopcam.com\HQENG_surface$\CamSurfaceCAD\Patterns\Flanges\Flange2-10k

for some reason this does not work. I changed the slashes to go right instead of left and it still does not work. I even tried to remove the \\ at the front of the path and it does not work. it also seems to have a problem with the surface$ as it must not like the $.

do any of you have any ideas on how I can set up this new network path to make it work ??????

thank you for any help you can give. Ken Reed

 

0 Likes
993 Views
8 Replies
Replies (8)
Message 2 of 9

cadffm
Consultant
Consultant

"$" starts a DIESEL evaluation..

If you need the macro for non-LT versions, use Lispfunction 'command'

 

^C^C(command "_.-INSERT" "\\\\HTNPFSV01CL2P.ccc.coopcam.com\\HQENG_surface$\\CamSurfaceCAD\\Patterns\\Flanges\\Flange2-10k")

Sebastian

0 Likes
Message 3 of 9

cadffm
Consultant
Consultant

For LT-Users:

mapp the folder under the $-Folder as an extra Drive, so you don't have a $ in your path. (for Fullversion it works too)

OR

Use a SCRIPT-file to insert the file.

 

Macro
^C^C_.SCRIPT;D:\CAD\BIB\HLP\MyScript.scr

;======== Script ========
_.-INSERT
D:\temp\test$\test

 

 

Sebastian

0 Likes
Message 4 of 9

Anonymous
Not applicable
Thank you for your response.
This is the command I put:
^C^C(command"_ -insert" "\\\\HTNPFSV01CL2P.ccc.coopcam.com\\HQENG_surface$\\CamSurfaceCAD\Patterns\\Flanges\\Thru-Bolt\\FLG_2_1_16-2K")
And this is the result I got at the command line:
(command"_ -insert" "
Do you see any problems I may have entered the code incorrectly?
Thank you so much.
I feel I'm by myself trying to get this set up for my company.

Ken Reed
0 Likes
Message 5 of 9

cadffm
Consultant
Consultant

Sorry -  my mistake.

 

^C^C(command "_.-INSERT" (strcat "//HTNPFSV01CL2P.ccc.coopcam.com/HQENG_surface" (chr 36) "/CamSurfaceCAD/Patterns/Flanges/Thru-Bolt/FLG_2_1_16-2K"))

Sebastian

0 Likes
Message 6 of 9

roland.r71
Collaborator
Collaborator

@Anonymous wrote:

I have a pull down menu i'll call MyFlanges, right now on my hard drive, I have the code;

^c^c-insert C:/Work/Patterns/Flanges/Flange2-10k

this will insert my flange called Flange2-10k.dwg.

Problem;

They gave me a dedicated network drive to put my files on so I need to change the paths to make them work.

the network path is: \\HTNPFSV01CL2P.ccc.coopcam.com\HQENG_surface$\CamSurfaceCAD\Patterns

so substituting this path for my old one:

^c^c-insert \\HTNPFSV01CL2P.ccc.coopcam.com\HQENG_surface$\CamSurfaceCAD\Patterns\Flanges\Flange2-10k

for some reason this does not work. I changed the slashes to go right instead of left and it still does not work. I even tried to remove the \\ at the front of the path and it does not work. it also seems to have a problem with the surface$ as it must not like the $.

do any of you have any ideas on how I can set up this new network path to make it work ??????

thank you for any help you can give. Ken Reed

 


As the \ (Backslash) is an 'escape char' you need to escape it, to get a regular \ (so: \\)

-or- replace it with a / (slash)

 

the double backslash at the start of a (windows)path identifies it as a networkpath.

Removing it is like removing C: at the start of a (local) path. that's not going to work.

 

\\network.server.sharename\path\to\your\files

becomes: \\\\network.server.sharename\\path\\to\\your\\files

-or- //network.server.sharename/path/to/your/files

 

I can't seem to get an error on the $, but if its used to start a DIESEL expression as mentioned here, you might try escaping it, to tell acad you want the $ character instead.

like: c:\\my\\te\$t\\files - but i'm not sure that will work (for you. It does work for me, but so it does with just te$t...)

 

If that part of the path is always going to be the same, you might try creating a drive mapping (see windows explorer), like S: = \\HTNPFSV01CL2P.ccc.coopcam.com\HQENG_surface$

 

And simply use that:

S:\\CamSurfaceCAD\\Patterns\\Flanges\\Flange2-10k

0 Likes
Message 7 of 9

roland.r71
Collaborator
Collaborator

\\HTNPFSV01CL2P.ccc.coopcam.com\

 

I didn't notice before, but your path looks suspiciously like a URL, instead of a UNC.

Are you sure its a Network path, not an http: adress ?

0 Likes
Message 8 of 9

Anonymous
Not applicable
Yes, they did away with all our drive letters and now we have drive addresses.
So this is really our I: drive but for security reasons, they took away the drive letters.
Thank you,
Ken
0 Likes
Message 9 of 9

roland.r71
Collaborator
Collaborator

@Anonymous wrote:
Yes, they did away with all our drive letters and now we have drive addresses.
So this is really our I: drive but for security reasons, they took away the drive letters.
Thank you,
Ken

For security reasons???

Afaik, there's 0 security risk for mapping a drive letter to a network resource, using group policies or something similar.

In fact, this is making things worse as everybody is likely to create their own drive mappings now, ending up with everybody having different drive letters and paths.

 

THAT's what you REALLY don't want. (IMHO)

 

But anyway, if it's a UNC network path, you should be able to use it, or create your own drivemapping to make sure you don't have to suply the "$" in ACAD.

Although I'm still wondering what that coopcam.com part is doing there...

0 Likes