nnutting Posted February 13, 2012 Posted February 13, 2012 I'm trying to load 3 separate linetypes and keep getting the following error: "Bad definition of CHAIN_LINK at line 2 file............" Any help? Quote
ReMark Posted February 13, 2012 Posted February 13, 2012 There is something wrong with the definition of the linetype therefore AutoCAD can't load it. Were you attempting to do some customization? Sample linetype definition taken from acad.lin: *FENCELINE1,Fenceline circle ----0-----0----0-----0----0-----0-- This is line 1. A,.25,-.1,[CIRC1,ltypeshp.shx,x=-.1,s=.1],-.1,1 This is line 2 where you are having your problem. Quote
nnutting Posted February 13, 2012 Author Posted February 13, 2012 I have three custom linetypes...below are the definitions for all three...can I just add these lines to the acad.lin?? If so...how do I need to rewrite them? *CHAIN-LINK, Chain Link Fence without spaces A,.75,-.0325,[CIRCLE,AECCLAND,x=-.0325,s=.0325],-.0325,.5 *CHAIN_LINK,Chain Link Fence A,1.001427,-.216955,[X,chain-link-fence,s=1],-.180741 *CHAIN_LINK2,Chain Link Fence A,1.001427,-.216955,[X,chain-link-fence,s=1],-.100741,-.216955,[X,chain-link-fence,s=1],-.180741 Thank you for your help. Quote
ReMark Posted February 13, 2012 Posted February 13, 2012 Yes, you could, if you really wanted to, append them to the acad.lin file or you could create a new .lin file (maybe call it MyLines or CustomLines). Sorry, but I don't have time to test each linetype at the moment. Quote
eldon Posted February 13, 2012 Posted February 13, 2012 The line type is referencing a Text Style that you do not have in the drawing - AECCLAND. Create this text style and you will have no problems loading the linetype. Quote
eldon Posted February 13, 2012 Posted February 13, 2012 *CHAIN-LINK, Chain Link Fence without spaces A,.75,-.0325,[CIRCLE,AECCLAND,x=-.0325,s=.0325],-.0325,.5 On further inspection, the linetype does not make sense. If it references a text style, then it would use characters from the text. Circle is not a character. If there is a shape file AECCLAND which contains the character "Circle", then the file name should have the .shx extension. So that linetype definition is a hodgepodge and might be simple to correct. Quote
nnutting Posted February 13, 2012 Author Posted February 13, 2012 Figured it out! Had to actually modify the main acad.lin...and was missing a few fonts. Might be an easier way but everything works now. Thanks all! 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.