Organic Posted November 9, 2009 Posted November 9, 2009 I am having trouble getting a complex linetype I am trying to create to work. I've outlined my steps, can anyone see what may be going wrong? Linetype file (test.lin) *BOX, Box test A,.5,–.25,[TR,"C:\TR.SHX"],-.25 Shape file (tr.shp) *100,11,TR 044,040,08C,088,084,040,08C,048,044,080,0 I compiled the tr.shp file into the tr.shx file. test.lin, tr.shp and tr.shx are all located in C:\ I loaded tr.shx into the file, and then using the shape command was able to insert the tr shape into the file. Upon loading the linetype file I receive "Bad definition of BOX at line 2 of file C:\test.lin: Invalid number of bad continuation Quote
lpseifert Posted November 9, 2009 Posted November 9, 2009 Have you restarted Autocad? Necessary to get a new linetype to work. If that doesn't work, try getting rid of the "c:\tr.shx" and just use tr.shx (be sure it's in acad's support path) Quote
Organic Posted November 9, 2009 Author Posted November 9, 2009 Where about's in AutoCad's support path shoudl it be? Quote
lpseifert Posted November 9, 2009 Posted November 9, 2009 Put in the Support directory under the root directory of acad's installation Quote
Organic Posted November 10, 2009 Author Posted November 10, 2009 I placed them there although still get the same error. Quote
CarlB Posted November 10, 2009 Posted November 10, 2009 From examples I see, you should not have quotes or path in the shape callout, so more like: *BOX, Box test A,.5,–.25,[TR,TR.SHX],-.25 Quote
Organic Posted November 10, 2009 Author Posted November 10, 2009 Yeah I tried it without that as a few examples I found had it that way, although the Wiley reference book I was working off of has the quotes around the file location. It still didn't work however. Quote
CarlB Posted November 11, 2009 Posted November 11, 2009 I played with it and got it to work. The main problem seemed to be the "-" character in -0.25, it was apparently not the the correct one. Notice your minus symbol is longer....how'd you do that The following test.lin made the boxes not overlap: *BOX,Box test A,.5,-.25,[TR,TR.SHX,s=0.05],-.25 Quote
Organic Posted November 12, 2009 Author Posted November 12, 2009 Thanks for taking a look, although I still can't get it to work on my end, even when directly copying the line data you posted. Quote
CarlB Posted November 12, 2009 Posted November 12, 2009 I just put a test drawing, test.lin, tr.shx all in the same folder. So maybe where you have them AutoCAD isn't finding them. Also you should purge drawing of the "box" linetype, then load linetype again. 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.