PDA

View Full Version : Which .lin file is loaded?



Alistair0610
2006-11-13, 03:35 PM
I have MEASUREINIT set to 1 for Metric linetypes. When I do LINETYPE Load, the default file is the ACADISO.LIN file. That's what I want.

However, my problem is, when I create a layer using "-LAYER Make Layername Ltype Dsahed" for example, the dashed linetype is loaded from ACAD.LIN if it doesn't already exist in the drawing. How can I ensure that the -LAYER Make command uses the correct .LIN file?

If I delete or rename the ACAD.LIN file I get the message "Linetype "dashed" not found", so it is definately using the ACAD.LIN file even though MEASUREINIT is set to 1.

Regards
Alistair Clark

Opie
2006-11-13, 03:42 PM
What is your MEASUREMENT variable set to?

jaberwok
2006-11-13, 07:42 PM
Does the acadiso.lin file exist in the same folder as acad.lin?

If all else fails, you could start afresh with a known, good metric template, erase everything and insert the geometry from your existing template.

sinc
2006-11-14, 01:50 AM
Autocad also searches your Support paths in order (as specified in OPTIONS). So if all else fails, you could always just make a copy of the acadiso.lin file, call it acad.lin, and put it in the first directory in your support path. As long as the directory containing your custom acad.lin file is listed before the one containing the default acad.lin, you should get the correct linetype loaded.

Of course, this option won't work very well if you want to use the acad.lin file for Imperial drawings, and the acadiso.lin for metric drawings...

Firmso
2006-11-14, 04:30 AM
I'm think you should do a search for all .lin files and delete them or back them up away from your computer and make sure that only one .lin file is located in your cad support folder.

This should do the trick.
Good Luck

Alistair0610
2006-11-14, 08:36 AM
I've considered renaming the ACADISO.LIN to ACAD.LIN, but unfortunately I'm supporting over 300 PC's in about 30 offices, so it's not that practical. I was hoping there may be a variable somewhere that held the value of the default .lin file. Ideally, I'd like to set that to something completely different.

Mike.Perry
2006-11-14, 08:49 AM
Hi

You may wish to review THIS post, or THIS post, or THIS post.

Have a good one, Mike

Opie
2006-11-14, 02:24 PM
Hi

You may wish to review THIS post, or THIS post, or THIS post.

Have a good one, Mike
That's why I asked about the MEASUREMENT variable.

Alistair0610
2006-11-15, 09:34 AM
MEASUREINIT and MEASUREMENT are both set to 1. Behavior is entirely as expected when loading linetypes through LINETYPE Load, it's only when creating a new layer through the command line (or lisp) where you do "-LAYER Make Layername Ltype Hidden". It loads the linestyle from ACAD.LIN.

The attached jpg shows a layer with hidden linestyle, loaded in this manner. If I delete or rename ACAD.LIN, it reports "Linetype "dashed" not found" and substitutes Continuous.

Ideally, I'd like to be able to redirect the "-Layer Make" command to a .lin file of my choosing on the network, but that may not be possible.

I've logged this query with the Subscription support as well, but they've not been able to resolve it as yet.

Thanks for the feedback so far.

Regards
Alistair

Mike.Perry
2006-11-15, 11:11 AM
That's why I asked about the MEASUREMENT variable.Hi Richard

I realise that, I was only tyring to offer Alistair further information on the topic...

:beer: Mike

Mike.Perry
2006-11-15, 12:19 PM
MEASUREINIT and MEASUREMENT are both set to 1. Behavior is entirely as expected when loading linetypes through LINETYPE Load, it's only when creating a new layer through the command line (or lisp) where you do "-LAYER Make Layername Ltype Hidden". It loads the linestyle from ACAD.LIN.

<SNIP>Hi

Looks like you have found a short-coming of the _.-Layer command...

The below comes from the AutoCAD Online Help File [F1]...




Load

Loads a linetype whose definition exists in a file. The acad.lin file contains the standard linetypes.As a workaround if you first use something like the _.LineType command to Load the LineTypes from the AcadIso.lin file, then use the _.-Layer command - the correct LineTypes will be used.

Have a good one, Mike

Alistair0610
2006-11-16, 10:56 AM
Cheers for that Mike, I suspected as much.

Alistair