Importing custom lines with a shape

Importing custom lines with a shape

divaro
Explorer Explorer
1,003 Views
2 Replies
Message 1 of 3

Importing custom lines with a shape

divaro
Explorer
Explorer

Making and using customised lines with a shape using the expresstool  'mkltype'  goes well as long the line is in the drawing wherein it was made.

 

Each time when I try to load such a line that was saved on an other location into a new drawing, I get the message 'Bad definition of xxx at line 2 of file xxxx'.

I can cut and past the line from one drawing into an other, even between different autocad versions. I also can load custom lines that were saved in My Documents.

And after those lines are copied from My Documents to an other location I can upload them from that new location into my drawings.

 

The custom lines and the shx & shp -files are in the same folder which is marked as trusted. All other customised lines with text and lines but without shapes are easy to load from other locations.

 

Does someone knows how to save a custom line directly on an USB stick?

Thanks in advance!

0 Likes
Accepted solutions (1)
1,004 Views
2 Replies
Replies (2)
Message 2 of 3

Darin.Green
Mentor
Mentor
Accepted solution

The reason why this happens is when the shape file is specified in the linetype, it's missing the file extension (.SHX). Open the linetype file with notepad and notice the following. In your file you will not see the file extension.

 

For Example:

*LINEBLOCK, box and lines ----[]-----[]----[]-----[]----[]---
A,3,-.3,[BOX,C:\Autodesk\linebox.shx,s=1],-.3,3,-.3,[BOX,C:\Autodesk\linebox.shx,s=1],-.3,3

 

Add the file extension, and you should be good to go.



If this information was helpful, please consider using the Accept Solution


Message 3 of 3

divaro
Explorer
Explorer
Indeed this is the solution. Many thanks for your support!
0 Likes