Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Merge LIN files

jsinobasN8VK5
Contributor

Merge LIN files

jsinobasN8VK5
Contributor
Contributor

Hello, I produce several LIN files that i want to combine into one single file.

 

the LIN files contains custom made lines that contains only a text between two continuous lines.

 

for example this "_X_" or this "-O-"

 

the problem that im facing is that when i tried to combine them all in one file by creating a LIN file and copy/paste the parameters into the new file i get the report of 

 

"Bad definition of <Line Name> at line <number> of file <path of the file>"

 

the only detail about this lines is that they are linked to 2 different TextStyles.

 

None of them is using a shape. The folder that contains the file is already added to the support file search path as suggested here:

https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Bad-de...

 

can anyone help me? what im doing wrong? is there a command/routine to merge LIN files?

 

thanks in advance,

 

J.

 

 

0 Me gusta
Responder
1.411 Vistas
16 Respuestas
Respuestas (16)

Patchy
Mentor
Mentor

Combine then in ACAD.LIN

0 Me gusta

jsinobasN8VK5
Contributor
Contributor

already tried that but its not working... after i copy paste the parameters im having the bad definition error for every line added :cara_de_decepción:

0 Me gusta

Patchy
Mentor
Mentor

Check and see when you use the drawing it must have two text style you defined in the .lin

0 Me gusta

pendean
Community Legend
Community Legend
>>>..."Bad definition of <Line Name> at line <number> of file <path of the file>"...<<<
That is a very specific error: I don't see that you did much to go to that line number or what you did to fix it, you seem to write about everything else. Do you just need to ensure those text styles are present in the DWG file? What else is on that line of code?

OR... share your ACAD.LIN file that is not working, let's see what you added and how it got added and if we can figure out what you forgot to do as a prerequisite to ensure your custom LIN definitions work well.

TIA
0 Me gusta

jsinobasN8VK5
Contributor
Contributor

file attached for reference. thanks in advance!

0 Me gusta

Patchy
Mentor
Mentor

Metric? put in acadiso.lin

 

0 Me gusta

jsinobasN8VK5
Contributor
Contributor

i dont understand why is there a difference.. i dont want to merge this with the LIN that autocad has by default. i just want to create a separate LIN for my customs as this file.. but without the error... is that even possible? thanks

0 Me gusta

Patchy
Mentor
Mentor

It only can be individual .lin

You can't combine them, it has been that way, the name of the linetype has to match the name of the .lin

One .lin at a time.

0 Me gusta

Valentin-WSP
Mentor
Mentor

Make sure the drawing you are loading the LIN file has the same textstyle name spelled exactly as in the LIN file.

valentin_0-1624544416223.png

 

valentin_0-1624544100115.png

 

valentin_1-1624544470439.png

 

 



Please select the "Accept as Solution" button if my post solves your issue or answers your question.


Emilio Valentin
0 Me gusta

Kent1Cooper
Consultant
Consultant

@jsinobasN8VK5 wrote:

.... when i tried to combine them all in one file by creating a LIN file and copy/paste the parameters into the new file i get the report of 

 

"Bad definition of <Line Name> at line <number> of file <path of the file>"

....


To elaborate a little on the advice in Message 4:  I get that message when the drawing I'm in does not have a defined Text Style of the Style name called for in a linetype definition.  Create the Style(s) [or bring them in through the Design Center], then you should be able to load the linetype(s).

Kent Cooper, AIA
0 Me gusta

Kent1Cooper
Consultant
Consultant

@Patchy wrote:

It only can be individual .lin

You can't combine them, it has been that way, the name of the linetype has to match the name of the .lin

One .lin at a time.


Not true.  It's true of Hatch patterns that are not contained in acad.pat, that there can be only one pattern definition in a file and that the file name must match the pattern name defined in it.  But multiple custom linetypes can be defined in one .lin file -- I do it all the time in a test.lin file for trials, which contains several definitions, with no problem.

Kent Cooper, AIA
0 Me gusta

Patchy
Mentor
Mentor

My mind fails me ☺

0 Me gusta

jsinobasN8VK5
Contributor
Contributor

@Valentin-WSP  i already tried this however the error continues. even when i tried to load this new lin file in the file where all the individual lines are added. 

 

the text styles are the same as the file is the same, the linetypes are individually loaded and they work fine. Still, when i tried with the All Combined LIN files................it FAILS :cara_de_decepción:

 

 

0 Me gusta

Valentin-WSP
Mentor
Mentor

Does it happen when you create a NEW blank drawing (adding those text styles and loading)?

Can the drawing have some errors (try to AUDIT, -PU, and PU the drawing / SAVE)?

If you copy the same linetypes from another functional drawing, does it show up correctly?



Please select the "Accept as Solution" button if my post solves your issue or answers your question.


Emilio Valentin
0 Me gusta

pendean
Community Legend
Community Legend
Post a DWG file to go with your LIN file please, ensure all prerequisite styles are defined in it.
0 Me gusta

jsinobasN8VK5
Contributor
Contributor

@Valentin-WSP  My goal is to have one unique LIN file. As i copy pasted the infomration from one file to the other (new) the lines are copied correctly. But this are all the individual lines (with individual LINs). my goal was to combine them into one single LIN file without having to built them all again. I dont know, something like LAYMRG for example, but for Linetypes.

 

@pendean my goal is to be able to load this in any DWG. 

0 Me gusta