I'm trying to open a specific autoCAD drawing from access.
My code is :-
stAppName = "C:\Program Files\AutoCAD 2005\acad.exe"
stFilename = Me.CADFilename & ".dwg"
stPath = Me.Path
FullSpec = stAppName & " " & stPath + stFilename
Call Shell(FullSpec, 1)
This opens AutoCAD but will not find the file. It does not recognise the network drive.
I think the problem is related to the fact that the path is set to J:\ but in actual fact the name would be \\myserver01\jobs\.
However if you enter the path using the J: method manually it works.
My second question would then be what is the best method to send specific commands to autoCAD once the drawing is open.
Thanks
My code is :-
stAppName = "C:\Program Files\AutoCAD 2005\acad.exe"
stFilename = Me.CADFilename & ".dwg"
stPath = Me.Path
FullSpec = stAppName & " " & stPath + stFilename
Call Shell(FullSpec, 1)
This opens AutoCAD but will not find the file. It does not recognise the network drive.
I think the problem is related to the fact that the path is set to J:\ but in actual fact the name would be \\myserver01\jobs\.
However if you enter the path using the J: method manually it works.
My second question would then be what is the best method to send specific commands to autoCAD once the drawing is open.
Thanks