Scoobydoo Posted November 10, 2009 Share Posted November 10, 2009 I am using AutoCAD 2009 and created some custom linetypes that I copied into the ACAD.LIN file (I saved the original "just in case"). When I open AutoCAD and go to load my custom linetypes, I get this error message: Bad Definition of OHP-600A-3PH at line 138 of file C:\Documents and Settings\e274j\Application Data\Autodesk\AutoCAD 2009\R17.2\enu\Support\ACAD.lin How can I resolve this? Quote Link to comment Share on other sites More sharing options...
alanjt Posted November 10, 2009 Share Posted November 10, 2009 Does the textstyle exist in the drawing? Quote Link to comment Share on other sites More sharing options...
Scoobydoo Posted November 10, 2009 Author Share Posted November 10, 2009 No it does not. Quote Link to comment Share on other sites More sharing options...
alanjt Posted November 10, 2009 Share Posted November 10, 2009 If the textstyle does not exist in the drawing, it will error when you try and load the linetype. Quote Link to comment Share on other sites More sharing options...
Scoobydoo Posted November 10, 2009 Author Share Posted November 10, 2009 Ok, that makes sense. That would explain why my script routine works beautifully in an existing drawing that I have (with the textstyle already in the drawing) Quote Link to comment Share on other sites More sharing options...
alanjt Posted November 10, 2009 Share Posted November 10, 2009 Ok, that makes sense. That would explain why my script routine works beautifully in an existing drawing that I have (with the textstyle already in the drawing) That's why I added put coding to create all our textstyles in our acaddoc.lsp. Quote Link to comment Share on other sites More sharing options...
Scoobydoo Posted November 10, 2009 Author Share Posted November 10, 2009 I would love to have all my script routines written as a lsp routine but have no idea on where to start. If you know of any good tutorials or books on LSP routines please let me know! Thank you for your help! Quote Link to comment Share on other sites More sharing options...
alanjt Posted November 10, 2009 Share Posted November 10, 2009 http://www.afralisp.net Quote Link to comment Share on other sites More sharing options...
todouble22 Posted November 10, 2009 Share Posted November 10, 2009 the abc's of auto lisp by george omura is pretty good as well. Quote Link to comment Share on other sites More sharing options...
TigerByTheTail Posted November 14, 2009 Share Posted November 14, 2009 I went through a 1-day LISP session in Vegas one year. It was intense, but it got me started. Made it easier to understand the books later on. Quote Link to comment Share on other sites More sharing options...
todouble22 Posted November 17, 2009 Share Posted November 17, 2009 i think i'm gonna have to head to vegas!! Quote Link to comment Share on other sites More sharing options...
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.