I am trying to create a custom linetype on my autoCAD for Mac, 2015. I have followed everything as far as creating and loading the linetype but nothing works. When I go to load the linetype, I can see the file, but it is empty. Help!
Solved! Go to Solution.
Solved by maxim_k. Go to Solution.
Solved by maxim_k. Go to Solution.
Would you mind sharing the file and some additional information? It'll help when trying to figure out the problem.
Thanks.
So when attempting to create my own linetype, I followed these instructions:https://knowledge.autodesk.com/support/autocad-lt/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Au...
I then attempted using this code to see if it would work:https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to...
It then shows it being created and saved onto my desktop. However, when trying to load the .lin file into my linetypes, it shows the .lin file as being empty. What am I doing wrong?
Hi,
I think you cannot see new linetype, when you are trying to load custom .lin file because you forget to add the name of linetype in the .lin file before linetype description:
The code inside /lin file should look:
*MCSTYLE,--- MC --- A,1.0,-0.5,["MC",mcstyle,S=1,R=0,X=0,Y=-0.5],-2.0
Than you will see:
I attached mc.lin file you can try (you need to unzip it from archive) and don't forget to create "mcstyle" text style in the drawing where you want to use this new linetype.
Maxim
I still can't seem to get it to work. And when I tried to load the file you attached it would not let me, I kept getting this alert:
You have not created text style "mcstyle" (I wrote about this in my post) in the drawing where you want to use linetype definition file I posted:
Maxim
You coded the linetype to use a predefined text style in your file called MC: that means you have to create/provide that text style in each and every file BEFORE you can load and use the linetype. You created a two-step process.
What font is this special MC text style supposed to use? You also need to make sure that font is loaded in MacOS as well. so your MC code presents the correct icon you seek.
I am having real issues with this as well. I have followed all the items listed above. I have added the *type when creating the actual linetype, but when I get done coding (in the command line) it says "invalid number or bad continuation". I have also tried putting the commands into a word type document, and saving it as .lin extension, but when I go the the line type manager to load it, it is empty (like the examples above).
Here is what I want to do:
There is an existing line type that I want to copy. It looks like ----GAS----. For my purposes, I just want to change that GAS to read STRM, SAN, ELE, etc. How can I copy this is existing linetype and modify it? How do I access the "coding" of existing linetypes, and for the custom linetype that I created, how can I open that to modify the coding to make it work?
Thanks
HI @Anonymous,
To create new linetypes that are similar to the existing one, first see if you have that linetype definition in your acad.lin file. This is a text file that is stored in your support folder by default. To get there, use your Finder to go to the Autodesk folder inside of applications. Then rt-click on the AutoCAD icon and select "Show Package Contents"
Then you can go into the Resource\Support folder to find the ACAD.lin file. You should open this file with TEXTEDIT.
Once you have it open you can simply copy the Gas Linetype definition and create the additional linetypes you want.
If you want the same look as the Gas line, i made the changes in these text. You should be able to copy and paste these lines into your acad.lin.
*GSTRM,STRM SWR ----STRM----STRM----STRM----STRM----STRM----STRM--
A,.5,-.2,["STRM",STANDARD,S=.1,U=0.0,X=-0.1,Y=-.05],-.25
*SAN,SAN SWR ----SAN----SAN----SAN----SAN----SAN----SAN--
A,.5,-.2,["SAN",STANDARD,S=.1,U=0.0,X=-0.1,Y=-.05],-.25
*ELE,ELE ----ELE----ELE----ELE----ELE----ELE----ELE--
A,.5,-.2,["ELE",STANDARD,S=.1,U=0.0,X=-0.1,Y=-.05],-.25
Please select the Accept as Solution button if my post solves your issue or answers your question.
@john.vellek wrote:
....
To get there, use your Finder to go to the Autodesk folder inside of applications. Then rt-click on the AutoCAD icon and select "Show Package Contents"
.....
Hi John,
I'm afraid that is not the correct place. editing acad.lin inside AutoCAD application folder will have no effect.
In fact, you need to edit the file located in Support folder inside Application Support folder which is in User Library folder.
For AutoCAD 2017 it will be:
~/Library/Application Support/Autodesk/AutoCAD 2017/R21.0/roaming/@en@/Support/acad.lin
For AutoCAD 2018 it will be:
~/Library/Application Support/Autodesk/AutoCAD 2018/R22.0/roaming/@en@/Support/acad.lin
Plus, in order to get the correct result with STRM SWR linetype, the linetype definition should be:
*GSTRM,STRM SWR ----STRM----STRM----STRM----STRM----STRM----STRM-- A,.5,-.2,["STRM",STANDARD,S=.1,U=0.0,X=-0.15,Y=-.05],-.3
It gives:
Instead of:
*GSTRM,STRM SWR ----STRM----STRM----STRM----STRM----STRM----STRM-- A,.5,-.2,["STRM",STANDARD,S=.1,U=0.0,X=-0.1,Y=-.05],-.25
which gives:
And one last note: as you will put new linetype definitions t the end of acad.lin file - dont forget to add carriage return after the last line. Plus - use only plain text editor application for editing acad/lin file (TextEdit, Textwrangler, BBEdit)
Maxim
Hi @maxim_k,
Thanks for the correction. You are correct the the spacing can be adjusted for the additional text characters in the definitions.
Much appreciated