Bad linetype definition

Bad linetype definition

mr1471
Participant Participant
5,890 Views
16 Replies
Message 1 of 17

Bad linetype definition

mr1471
Participant
Participant

Hi. I'm using Autocad 2012 and there is an error about linetype. BATTING linetype is showing as a question mark line and when I try to load the linetypes, error message('Bad definition of BATTING at line 122 ...') comes up.

The computer of others also have same problem.

From reading other posts I've got some solutions and did all I can do. (1. Check out acad.lin and acadiso.lin file. → And there wasn't different part between correct definition and mine. / 2. Check out a path of *.lin file and .shx file. / 3. Open a template as a acad.dwt. / 4. Overwrite *.lin file and ltypeshp.shx file. / 5. Reinstall Autocad.)

But they have only fixed a newly drawed dwg. 

How can I fix it?

Thanks in advance.

0 Likes
5,891 Views
16 Replies
Replies (16)
Message 2 of 17

h_s_walker
Mentor
Mentor

The below is the batting definition from my acadltiso.lin file

*BATTING,Batting SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
A,.00254,-2.54,[BAT,ltypeshp.shx,x=-2.54,s=2.54],-5.08,[BAT,ltypeshp.shx,r=180,x=2.54,s=2.54],-2.54

 

 The below is the batting definition from my acadlt.lin file

*BATTING,Batting SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
A,.0001,-.1,[BAT,ltypeshp.shx,x=-.1,s=.1],-.2,[BAT,ltypeshp.shx,r=180,x=.1,s=.1],-.1

 

Check to see if your two are the same and make sure there are no spaces at the end of the definition lines

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 3 of 17

mr1471
Participant
Participant

Sorry for my late reply.

I checked my codes and there were no spaces at the end of them.

Here is the code that I have.

[acadltiso.lin]

*BATTING,Batting SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
A,.00254,-2.54,[BAT,ltypeshp.shx,x=-2.54,s=2.54],-5.08,[BAT,ltypeshp.shx,r=180,x=2.54,s=2.54],-2.54

[acadlt.lin]

*BATTING,Batting SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
A,.0001,-.1,[BAT,ltypeshp.shx,x=-.1,s=.1],-.2,[BAT,ltypeshp.shx,r=180,x=.1,s=.1],-.1

 

FYI, there is an external reference with the drawings which have the problem and other company made it.

I wonder if the drawing should be fixed by a person who made the drawing first.

0 Likes
Message 4 of 17

h_s_walker
Mentor
Mentor

Ok, so looking at your linetype definitions they are exactly the same as mine.

 

As to  your suggestion that the xref could be the problem do the following.

Create a blank drawing. At the command line type RECOVER. Now choose the xref and see if it fixes the problem.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 5 of 17

steven-g
Mentor
Mentor

You do mention having checked the file location, linetype.shx file should be at

C:\Users\UserName\AppData\Roaming\Autodesk\AutoCAD LT 2021\R27\enu\Support

Can you confirm that is where it is, and if so then it might be an idea to post a copy of that file here, it sounds like you either don't have the correct file showing up in the support path


@mr1471 wrote:

Hi. I'm using Autocad 2012 and there is an error about linetype. BATTING linetype is showing as a question mark


or the file itself is corrupted. 

0 Likes
Message 6 of 17

pendean
Community Legend
Community Legend
>>>...But they have only fixed a newly drawed dwg. ...<<<
Is the problem in ALL of your files, even new ones, or just this one DWG file? I'm not clear on your statement above.
0 Likes
Message 7 of 17

mr1471
Participant
Participant

Here is the location of my linetypeshp.shx file.

C:\Users\thePYS\AppData\Roaming\Autodesk\AutoCAD LT 2019\R25\kor\Support

And I attach the file.

 

0 Likes
Message 8 of 17

mr1471
Participant
Participant

It means that the 5 solutions I had done fixed the problem in new ones. But they didn't fix existing DWG files.

0 Likes
Message 9 of 17

mr1471
Participant
Participant

I can't figure out how to do RECOVER at the command linetype.

Should I click some button at the command?

If so, could you let me know what button is?

0 Likes
Message 10 of 17

steven-g
Mentor
Mentor

That makes a bit more sense, the old drawings won't magically be fixed when after you have found the problem. You might have to reload the linetype again into those drawings and possibly even change the existing lines (in properties) from batting to something else and then back to batting before the lines will be corrected. In the worst case possible even redraw those lines, but that is difficult to say without seeing your drawing file. If trying those couple of approaches don't help then can you post a dwg with the problem lines?

0 Likes
Message 11 of 17

h_s_walker
Mentor
Mentor

I said at the command line type RECOVER. See the image below

Capture.JPG

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

Message 12 of 17

pendean
Community Legend
Community Legend
INSERT your problem file into one of your perfect template files with all the linetypes preloaded, EXPLODE it, then SAVEAS to create a new file: test it, does the problem go away?

And since you asked, here is how to use RECOVER command https://autocadtips1.com/2012/10/17/recover-a-drawing/
0 Likes
Message 13 of 17

mr1471
Participant
Participant

I typed it, but it didn't fix the problem. I'd rather give up fixing it. 

Thanks for every advice you've given to me. 

Have a nice day 🙂

0 Likes
Message 14 of 17

mr1471
Participant
Participant

It doesn't go away. I think I can't fix it, so I'd rather give up fixing this problem.

Thanks for your advice.

Have a nice day 🙂

0 Likes
Message 15 of 17

steven-g
Mentor
Mentor

You can still post one of the old drawings with the problem linetype so we can see if someone here can see what the problem is, we only need that part of the drawing that shows the line with an error.

0 Likes
Message 16 of 17

mr1471
Participant
Participant

Should I post the dwg file? Is it okay if i post a image file?

0 Likes
Message 17 of 17

steven-g
Mentor
Mentor

An image won't show the problem settings we need a dwg file showing the error in the linetype

0 Likes