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?
Solved! Go to Solution.
Solved by pendean. Go to Solution.
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.
@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.
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.
@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.
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...
@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.
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
@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?
Following the logic of the above image, the lines below should be in mm in the paperspace right?
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
after loading
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?
@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
I have all my templates set up in a custom location @pendean as you've shown.
When I use the default AutoCAD highlighted below and use my custom layers it still shows the same.
As shown before, when the layer command works as per this screenshot:
Then when I 'reload' all the linetypes, it updates them to this:
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.
Your two folder addresses/file locations do not match
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
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.
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).
@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
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?
Can't find what you're looking for? Ask the community or share your knowledge.