Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linetype - "Bad definition" error

9 REPLIES 9
Reply
Message 1 of 10
kunjan
3813 Views, 9 Replies

Linetype - "Bad definition" error

Hi there,

 

I have recently upgraded my machine from AutoCAD Civil 3D 2013 to AutoCAD Civil 3D 2015.

 

We have always had a linetype called WBCM which had the Pipe3, Pipe6 and Pipe9 linetypes.

 

Now when I try to load the wbcm.lin linetype, it gives me a "bad definition" at lines 13, 16 etc...

 

So I checked the .lin file and found that all these lines with "bad definition" have a shape file called wbcm.shx.

 

I have already added the paths to supporting files through Right Click - "Options" (including Shape Files, Fonts, Linetypes, LISP). That shape file is in the same folder as the .lin file. Also tried putting it in the folder whose path is specified in the supporting files....still the same error.

 

I have also tried re-creating the shape file from wbcm.shp through the "compile" command. Still no better.

 

Could it be the re-specifying of paths in the new AutoCAD or something else?

 

Any help is much appreciated.

 

Regards,

 

Kunjan Patel.

9 REPLIES 9
Message 2 of 10
Jay_B
in reply to: kunjan

Is it possible the Linetype file uses a Font which Autocad cannot find?

This can also cause the bad definition error.

This may also be worth a try.

http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Bad-def...
C3D 2018.1
C3D 2016 SP4

Win 7 Professional 64 Bit
Message 3 of 10
kunjan
in reply to: Jay_B

Hi Jay_B,

 

Thanks for your reply.

 

I have checked the styles and none of them actually uses ltype.shx.

 

Besides, I don't think this wbcm.shx uses any fonts. It's more like a block.

 

Kunjan.

Message 4 of 10
rl_jackson
in reply to: kunjan

Post the linetype definition, I'm sure someone here can help.

Rick Jackson
Survey CAD Technician VI

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

Message 5 of 10
AllenJessup
in reply to: kunjan

Just a guess but make sure that the path is added to Trusted Locations.

 

tl.png

 

Allen

Allen Jessup
CAD Manager - Designer
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

Message 6 of 10
kunjan
in reply to: AllenJessup

Hi AllenJessup,

 

I added the path...still the same error.

 

Thanks.

 

Kunjan.

Message 7 of 10
kunjan
in reply to: rl_jackson

Hi rl_jackson,

 

Attached is the compressed folder with the .lin, .shp and .shx files.

 

Thanks.

 

Regards,

 

Kunjan.

Message 8 of 10
andrewpuller3811
in reply to: kunjan

Well the problem is with the shx/shp files you attached.

 

The line type definitions for PIPE3, PIPE6 AND PIPE9 in the lin file you attached are point to a symbol PIPE in the WBCM.shx file.

 

The SHP and SHX file you attached do not have any symbol called PIPE defined, so the linetype will through an error.

 

Quite possibly the shp file was edited and the PIPE symbol removed by accident. Then when the SHX was compiled from the SHP it no longer had the PIPE symbol definition in it.

 

You are going to have to either hunt around and find an old version of the SHP or SHX prior to the edit, or recreate the symbol.

 

 



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 10 Enterprise 64bit
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2021
Message 9 of 10
kunjan
in reply to: andrewpuller3811

Cool.

 

Thanks, Andrew.

 

I'll dig into some of the archived files and see if I can find the original shx or shp file, again.

 

If not, I'll just try and re-create the linetype.

 

Thanks again for your help.

 

Kunjan.

Message 10 of 10
Yunlena
in reply to: AllenJessup

Adding the file path to the .shp, .shx, and .lin files to the Trusted Locations and Support Path made this work for me. Thank you very much! 

Best,
Christina
-------
Map 3D 2019 | Civil 3D 2019
Windows 10 | Lenovo P50S

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report