Alexico Posted April 15, 2013 Posted April 15, 2013 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. 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. Quote
RobDraw Posted April 15, 2013 Posted April 15, 2013 That error says that it can't find "BORAS.dwg" in the listed locations. Does that drawing reside in any of those locations? Quote
MSasu Posted April 16, 2013 Posted April 16, 2013 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. Quote
Alexico Posted April 16, 2013 Author Posted April 16, 2013 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. Quote
Alexico Posted April 16, 2013 Author Posted April 16, 2013 Also after restarting Autocad , none of them are corresponding again , and they have to be put in manually. Quote
MSasu Posted April 16, 2013 Posted April 16, 2013 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")) Quote
neophoible Posted April 16, 2013 Posted April 16, 2013 Is "SXHMATA_BLK" in "C:\\Program Files\\CAD\\", or is it in "C:\\CAD\\"? These are not the same to the computer. Quote
Alexico Posted April 17, 2013 Author Posted April 17, 2013 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". Quote
MSasu Posted April 17, 2013 Posted April 17, 2013 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. Quote
Recommended Posts
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.