Jump to content

"autocad.pat" can't find file


joe_d

Recommended Posts

ACAD 2010 32bit Win 7 Pro

 

Getting the dreaded can't find file message. Searched on this forum for the message and can't seem to find the exact similar situation. I don't use CAD much anymore, but had messed this up some time ago trying to install a custom hatch.

 

All of the sudden all my hatch patterns were inaccessible - still visible on the drawing, but I click on it and I get the error message. I checked C:\Users\xxxxx\AppData\Roaming\Autodesk\ACA 2010\enu\Support\pats and I can plainly see all the patterns are still there. They just don't show up on the hatch menu.

 

I also can't seem to abbreviate commands in the command box for some reason - I have type things out fully.

 

Any help would be really appreciated, TIA

Link to comment
Share on other sites

Should also mention that when I load the drawing, it seems to be looking for the ltypeshp.shx file. I just cancel and proceed and can work with the basics.

Link to comment
Share on other sites

Try this. At the command line type in the following just as it appears then press the Enter key. What should appear next is the path to the file. Make note of it.

 

(findfile"acad.pat")

 

Example taken from AutoCAD 2017.

 

Command: (findfile"acad.pat")

 

"C:\\Users\\REMARK\\appdata\\roaming\\autodesk\\autocad 2017\\r21.0\\enu\\support\\acad.pat"

Link to comment
Share on other sites

Thank you for the reply!

 

Typed the command into both the ACAD command line and the W7 search (wasn't sure which you were referring to). No luck - nothing. I know where the file is - C:\Users\xxxx\Application Data\Autodesk\ACA 2010\enu\Support\pats - I just can't seem to get the program pointed at it when I open a dwg file.

Link to comment
Share on other sites

At first glance it looks like your support files paths are incorrect for your system.

 

 

From the menu try Tools >Options>SupportPaths and set to the location you quoted at:

C:\Users\xxxxx\AppData\Roaming\Autodesk\ACA 2010\enu\Support\pats

 

 

Also check that the other paths point where expected.

 

 

hth

Hugh

Link to comment
Share on other sites

This lisp will set paths but if you rem the PUT and un rem the GET you can look at all your config paths. Copy the *files* line to command line then copy each GET line and paste to command line keep F2 text screen so you can see answers.

 

; This sets a reference to the install path of your product
; the gets are their for info maybe other use

(vl-loa(vld-com)
; make temp directory
(vl-mkdir "c:\\ACADTEMP")

(setq *files*  (vla-get-files  (vla-get-preferences (vlax-get-acad-object))))

; savepath
;(vla-get-AutoSavepath *files*)
(vla-put-AutoSavepath *files* "C:\\ACADTemp")

; custom icons
;(vla-get-CustomIcons *files*))
(vla-put-CustomIcons *files* "S:\\Autodesk\\ICONS")

; printers config
;(vla-get-PrinterConfigPath *files*)
(vla-put-PrinterConfigPath *files* "S:\\AutoDESK\\Plotting\\Plot Styles 2011")

; printer drv's
;(vla-get-PrinterDescPath *files*)
(vla-put-PrinterDescPath *files* "S:\\AutoDESK\\Plotting\\Drv")

; print spooler
;(vla-get-PrinterSpoolerPath *files*)
(vla-put-PrinterSpoolerPath *files* "C:\\ACADTemp\\")

; template location
;(vla-get-QnewTemplateFile *files*)
(vla-put-QnewTemplateFile *files* "S:\\Autodesk\\c3d Templates\\cogg.dwt")

;make new support paths exist + new
(setq paths (vla-get-SupportPath *files*))

(setq coggpaths 
 "S:\\autodesk\\supportfiles;
 S:\\autodesk\\lisp;
 S:\\autodesk\\fonts;
 S:\\autodesk\\hfs fonts;"
 )

(setq newpath (strcat coggpaths paths))
(vla-put-SupportPath *files* newpath)

; Tempdirectory 
;(vla-get-TempFilePath *files*))
(vla-put-TempFilePath *files* "C:\\ACADTemp\\")

; template  path
;(vla-get-TemplateDwgPath *files*)
(vla-put-TemplateDwgPath *files* "S:\\Autodesk\\c3d Templates")

; xref temp path
;(vla-get-TempXrefPath *files*))
(vla-put-TempXrefPath *files* "C:\\ACADTemp\\")

; end use of *files*
(vlax-release-object *files*)

; exit quitely
(princ "All Done")

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...