custom layers loading from wrong .lin file

cperrydesign
Enthusiast
Enthusiast

custom layers loading from wrong .lin file

cperrydesign
Enthusiast
Enthusiast

Hi folks. 

 

I've got a CUI file set up with a custom menu to load layers into my drawing. However for some reason it's started loading in the linetype from the imperial .lin file rather than the metric one.

You can see in the screenshot below the setup I have for it. When I manually load the linetypes from acadltiso.lin it updates all the layers in the drawing with the correct linetype. 

 

Can anyone help with this? 

 

cperrydesign_0-1647469407450.png

 

0 Likes
Reply
Accepted solutions (1)
1,764 Views
22 Replies
Replies (22)

h_s_walker
Mentor
Mentor

What are your drawing units settings?

What drawing template are you using?

Howard Walker
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


Left Handed and Proud

0 Likes

cperrydesign
Enthusiast
Enthusiast

@h_s_walker wrote:

What are your drawing units settings?

What drawing template are you using?


The drawing is in mm and it's a custom template. 

0 Likes

h_s_walker
Mentor
Mentor

At the command line type MEASUREMENT. Change the value to 1. See the link below

MEASUREMENT (System Variable) | AutoCAD 2016 | Autodesk Knowledge Network

 

Howard Walker
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


Left Handed and Proud

0 Likes

cperrydesign
Enthusiast
Enthusiast

@h_s_walker wrote:

At the command line type MEASUREMENT. Change the value to 1. See the link below

MEASUREMENT (System Variable) | AutoCAD 2016 | Autodesk Knowledge Network

 


It is set to 1 already. 

0 Likes

pendean
Community Legend
Community Legend
So the problem is limited to this one single DWG file?
Or does this problem present itself in ALL files you've tested it in?

Subtle solution is posed in those two questions 😉
0 Likes

cperrydesign
Enthusiast
Enthusiast

@pendean wrote:
So the problem is limited to this one single DWG file?
Or does this problem present itself in ALL files you've tested it in?

Subtle solution is posed in those two questions 😉

It seems to be all of them. 

 

0 Likes

pendean
Community Legend
Community Legend

Did you restart your computer yet to see if the issue goes away?

 

Post a DWG file with the problem, and share with us a screenshot of your ABOUT command pop-up please.

You can also do this to see if it helps https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-r...

0 Likes

cperrydesign
Enthusiast
Enthusiast

 


@pendean wrote:

Did you restart your computer yet to see if the issue goes away?

 

Post a DWG file with the problem, and share with us a screenshot of your ABOUT command pop-up please.

You can also do this to see if it helps https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-r...


See below. I've attached the blank drawing with the linetypes that are generated from the layers (I e-transmitted in case you needed the plotstyle). You can see the CUI command in the original post. 

I've also attached the support file path. I tried replacing the .lin files in my custom folder with the ones from the default location, but that didn't help. Should I be removing the .lin file from the autoCAD default? I was always told to leave the defaults 'as is'.

I've restarted my PC and AutoCAD both. I actually think this has been an issue for a while as I created some custom lines a while back that wouldn't load through the CUI command in the original post. But I hadn't noticed it with 'normal' linetypes, as they were always present in the template files, and when I manually load them in, then they update and it seems to stay updated until I purge all the linetypes out.

 

 

cperrydesign_1-1647581098864.png

 


cperrydesign_0-1647580956598.png

0 Likes

pendean
Community Legend
Community Legend

Thanks for the file.

 

There is nothing wrong with your file except for LTSCALE set to 1 is too small for the lengths you are using to show your teeny-tiny CENTER2/HIDDEN2/PHANTOM2 linetypes: those ought to be CENTERx2 / HIDDENx2 / PHANTOMx2 linetypes instead (x2 is double, 2 is half in linetype names).

pendean_0-1647607391016.png

 

Or you need to change your LTSCALE to 10 (or higher).

 

I also changed your MSTLSCALE to 1 from 0.

 

HTH

0 Likes

cperrydesign
Enthusiast
Enthusiast

@pendean wrote:

Thanks for the file.

 

There is nothing wrong with your file except for LTSCALE set to 1 is too small for the lengths you are using to show your teeny-tiny CENTER2/HIDDEN2/PHANTOM2 linetypes: those ought to be CENTERx2 / HIDDENx2 / PHANTOMx2 linetypes instead (x2 is double, 2 is half in linetype names).

 

Or you need to change your LTSCALE to 10 (or higher).

 

I also changed your MSTLSCALE to 1 from 0.

 

HTH


Thanks for taking a look at this btw.

I think I'm misunderstanding something then. The Autocad knowledge base says that I should have my ltscale set to 1 to have the linescale show up at the size it's listed at in the .lin file? 

cperrydesign_0-1647608660276.png

Following the logic of the above image, the lines below should be in mm in the paperspace right? 

cperrydesign_1-1647608718953.png

 

Also, what happens when you reload all the acadltiso lintypes I have in the drawing? Because for me, they they return the scale I'd expect them to be. See below. 

Before loading

cperrydesign_2-1647612264085.png

after loading

cperrydesign_3-1647612294049.png

 

 

 

 

0 Likes

pendean
Community Legend
Community Legend
LTSCALE can be set to anything you want in your files for your projects as long as all stakeholders go along with it. Remember, AutoCAD/LT is a general use CAD program used by those that design circuits on chips in computers and city planners designing cityscapes, so one magical setting makes no sense for everyone at all. It is a good starting point of course.

Perhaps you are starting with a template that is incorrectly set in the first place? I rarely replace linetypes in any DWG files, if you have to do so in your empty files I suspect your starting DWG is the actual problem.
0 Likes

cperrydesign
Enthusiast
Enthusiast

Yeah, working with other people is why I want the defaults left as they are, as I'm working with other designers who don't know enough to change the linetype settings. So want them to work 'as is' for this particular client. 


@pendean wrote:
Perhaps you are starting with a template that is incorrectly set in the first place? I rarely replace linetypes in any DWG files, if you have to do so in your empty files I suspect your starting DWG is the actual problem.

Possibly. Any idea on how I check the starting dwg? 

0 Likes

pendean
Community Legend
Community Legend

@cperrydesign wrote:
Any idea on how I check the starting dwg? 

Create your own customized/fixed Template file, and only ever use it when starting a new file 

https://www.google.com/search?q=autocad+tip%3A+creating+template+files

 

Then adding it here in OPTIONS to always ensure it is used all the time

pendean_0-1647617376053.png

 

0 Likes

cperrydesign
Enthusiast
Enthusiast

I have all my templates set up in a custom location @pendean as you've shown. 

cperrydesign_3-1647950186807.png

 

When I use the default AutoCAD highlighted below and use my custom layers it still shows the same. 

cperrydesign_2-1647949886589.png

 


As shown before, when the layer command works as per this screenshot: 

cperrydesign_0-1647949828842.png

Then when I 'reload' all the linetypes, it updates them to this: 

cperrydesign_1-1647949857639.png

The reloaded linetype should be correct, but I'm still unsure why it's not showing them or loading them correctly in the first place. I had been aiming for a 'clean' template, but the way this is looking I will need to have 'all' the linetypes loaded in the drawing.

 

0 Likes

pendean
Community Legend
Community Legend

Your two folder addresses/file locations do not match

pendean_0-1647952629876.png

 

The stock ACADLTISO.DWT for LT2022 over here is dated Jan142021 and has no HIDDEN linetypes already defined in the file over here, so you have an older files someone edited for you/you added yourself to it from a source that is not correct.

 

So far it appears you are not pulling files from an unknown source, and opening DWT files that someone edited incorrectly. Can't help you there, you appear to be using nothing "stock" that we all have.

 

HTH

0 Likes

cperrydesign
Enthusiast
Enthusiast

cperrydesign_0-1647953627732.png

A: answering your post suggesting I set up custom templates. Not related to B. 

 

B: I used an autoCAD template to test whether it was something to do with 'my' templates (as shown under A, and the one I uploaded for you to look at the other day) or some other issue. 

Using the template in default autocad folders gives me the same result as I got the other day. 

 

C: shows what's happening in all files. This is the core issue, not where my templates are. 

 

0 Likes

pendean
Community Legend
Community Legend

Attached is the stock 'iso' dwt file from a clean unmigrated LT2022.1.2 installation on my PC: show me/explain how to add the three HIDDEN linetypes in it without loading them (as I understood you are doing) so that I can then reload them to change them as you did (again as I understood you are doing).

0 Likes

cperrydesign
Enthusiast
Enthusiast

@pendean wrote:

Attached is the stock 'iso' dwt file from a clean unmigrated LT2022.1.2 installation on my PC: show me/explain how to add the three HIDDEN linetypes in it without loading them (as I understood you are doing) so that I can then reload them to change them as you did (again as I understood you are doing).


So you type the command:

-layer

this will then give you a list of options. My CUI custom menus have the following commands applied. 
-layer;m;RD_Hidden;c;blue;;l;HIDDEN;;lw;0.15;;;
-layer;m;RD_Hidden2;c;blue;;l;HIDDEN2;;lw;0.15;;;
-layer;m;RD_HiddenX2;c;blue;;l;HIDDENX2;;lw;0.15;;;


The below screenshot show's how it's set up in the CUI

cperrydesign_0-1647955925984.png

 

Using the file you provided, it gives me the same result. I'm very interested to see if it works on your machine. 
Currently the only 2 theories I have are: It's linking the wrong .lin file (possibly from migrating to newer versions?) or it's some kind of display issue. 

Or possibly I need another command in the -layer command to specify the metric .lin type file? 

 

 

 

0 Likes

pendean
Community Legend
Community Legend
Thanks: so you never load the correct linetype, you just rely on AutoCADLT to do it correctly by itself?
I can repeat that in every AutoCAD/LT version from 2019 to 2022. That's not a good method if you want 100% control all the time. Seek out Autodesk Support from your Accounts Page and report the old problem, see what suggestions they have other than the one I am going to suggest, aka creating your own template file that is 100% preset with all linetypes and layers already defined in it.
Leave your macros for an occasional need in an existing file as opposed to using them all the time to avoid 15-20 minutes of time to create a unique DWT file just for you.

1. have these layers already defined in a custom uniue to you DWT file perfectly 100%, then just opening that DWT file.
2. s click a button to run a macro for one of your layers ONLY if you need it, only in a DWG file with no issues.
3. You can import layers from template files using ADCENTER or even just INSERT command with a block.

HTH
0 Likes