Jump to content

Recommended Posts

Posted

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

Posted

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)

Posted

Where about's in AutoCad's support path shoudl it be?

Posted

Put in the Support directory under the root directory of acad's installation

Posted

I placed them there although still get the same error.

Posted

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

Posted

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.

Posted

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

Posted

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.

Posted

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.

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