Videos

“Bad definition of ____ at line __ of file ____.lin” when trying to load custom complex linetypes in AutoCAD

Contents

Issue:

When trying to load a custom complex linetype, the following error message appears in AutoCAD:

AutoCAD

“Bad definition of ____ at line __ of file ____.lin” .

User-added image

If the linetype is already being used in the drawing, it doesn’t display correctly.

Causes:

There are a few possible causes for this issue:

  • SHX or SHP files are missing from linetype definitions. 
  • Mismatch of SHP (shape) name in the drawing with the .lin file
  • Corrupted SHP file
  • Issue with support file path location where shx is located

Solution:

To resolve this issue, try the following:

Place SHX and SHP files in the AutoCAD Font Folder

Copy the corresponding SHX and SHP files to AutoCAD Font folder: 
C:Program FilesAutodeskAutoCAD version>Fonts

Make sure .LIN file is in the correct folder

If the
.lin is saved to a non-default folder, make sure it is
added to a to the Support File Search Path

Verify SHP file in the drawing matches the one defined in the .LIN file

To verify the name, follow the steps below:

  1. Open the drawing which contains the embedded shape file. 
  2. Enter SHAPE in the command line input and press <Enter>
  3. Note which shapes AutoCAD has available
User-added image
  1. Open the .lin file which contain the definition/syntax for the custom linetype.
User-added image
  1. Make sure the shape names matches. For example the correct syntax should be as follow:
*UDRAIN,U Drain ->-
A,2.863274,[
UD,U-Drain.shx,s=1],2.136726

Video:
Note: The shape name (
name.shp) in the folder also needs to match. 
 

Check Support File Path Location

Make sure that the SHX, SHP, and .LIN files are located in one of the Support File Paths. Make sure that the Support File Path location is unique (i.e. avoid folders with similar names)

 
INTERESTING:   Plant 3D with the Experts (video blog series): Where to get help | AutoCAD

Products:

AutoCAD Products;

Versions:

any_version;

Source: Autodesk

Back to top button

Adblock Detected

Please disable your ad blocker to be able to view the page content. For an independent site with free content, it's literally a matter of life and death to have ads. Thank you for your understanding! Thanks