Jump to content

Lisp Error (Can't find file in search path)


Alexico

Recommended Posts

Hello.

 

I have recently formated my pc , and i re install my Autocad 2011 version x86 and i loaded my personal Cuix. I have noticed that several lisps (block especialy , and scale lisps) are not working. When i try to add them in my files i receive an error , and a returning message , saying that Autocad "can't find file in search path". On the other hand other program lisps , which are contained on the same folder , are working fine. I google the problem for a solution and i found that several users re ccomend to add an new support path pointing out the folder where all lisp are located. I did so , but still lisps are not fuctioning...... Im attaching a screen shot of the problem im facing. I would really appreciate if anyone can help me.

 

 

Autocad Error.jpg

 

my folder where all lisps are being contained is the folder Named "Cad" (second in row).

 

 

Thank you for your time , and looking forward for your answers.

Link to comment
Share on other sites

The error you posted isn't related to the search paths - seems that your routine is looking for a block whose path is hard-coded. Please make sure that you have the C:\CAD\SXHMATA_BLK folder on your station and also that BORAS.dwg is avaliable on it.

Link to comment
Share on other sites

first of all thank you for the quick reply. Both "Boras.dwg and other blocks are being contained in the folder "SXHMATA_BLK". I've noticed also that if i put the block manualy in the drawing the command_lisp after works great. (Something like refreshing the path). But can't really know if this can happen with other lisp as scale drawing factor etc.

Link to comment
Share on other sites

I've noticed also that if i put the block manualy in the drawing the command_lisp after works great. (Something like refreshing the path).

It works in that case due to the fact that then the block definition is available into your drawing after you inserted it manually.

 

Please run the code below on command line or VLIDE console and check if return True:

(progn (vl-load-com) (vl-file-directory-p "C:\\CAD\\SXHMATA_BLK"))

Link to comment
Share on other sites

Msasu , thanx for the code . But as Neophoible said , i have to add also Program Files to it " (progn (vl-load-com) (vl-file-directory-p "C:\\Program Files\\CAD\\SXHMATA_BLK")) . It returns True. if i skip the "Program Files" part it returns the value "nil".

Link to comment
Share on other sites

The screenshot you posted above states clearly that your code is expecting to find the block on "C:\CAD\SXHMATA_BLK" path and not on "C:\Program Files\CAD\SXHMATA_BLK". Seems that you didn't installed the tool in the appropriate path.

You have now two solutions:

 

  • Edit the code to use the new path, the one with Program Files. But, please, pay attention that may have to fix this in many spots!
  • Move the folder from Program Files into the root of C: drive; make sure that you have write priviledges there.

Personally I will go with the second approach.

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...