AutoCAD for Mac Forum
Welcome to Autodesk’s AutoCAD for Mac Forums. Share your knowledge, ask questions, and explore popular AutoCAD for Mac topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linetype for mac

18 REPLIES 18
SOLVED
Reply
Message 1 of 19
Anonymous
1918 Views, 18 Replies

Linetype for mac

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!

18 REPLIES 18
Message 2 of 19
Rob67ert
in reply to: Anonymous

Hi there,
Welcome to the forum.

How did you try to create it?
Can you attach the file where you line should be in?
Robert

If you find this reply helpful ? It would be nice if you use the Accept as Solution or Kudos button below.
Message 3 of 19
pendean
in reply to: Anonymous

Show us your linetype code and explain your intent/final result desire.
Message 4 of 19
Emmsleys
in reply to: Anonymous

Would you mind sharing the file and some additional information? It'll help when trying to figure out the problem. 

 

Thanks. 



Sarah Emmsley
Technical Support Specialist

Message 5 of 19
Anonymous
in reply to: Anonymous

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?

Message 6 of 19
maxim_k
in reply to: Anonymous

Hi,

In order to determine what you are doing wrong, we need your custom.lin file. Can you attach it here?

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 7 of 19
pendean
in reply to: Anonymous

Post your LIN file, show us the content/code you used/typed to create it.
Message 8 of 19
Anonymous
in reply to: maxim_k

This is the test code I am using:
A,1.0,-0.5,["MC",mcstyle,S=1,R=0,X=0,Y=-0.5],-2.0

 

And the file is attached:

 

 

Message 9 of 19
maxim_k
in reply to: Anonymous

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:2017-01-19_08-16-58.png

 

 

 

 

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


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 10 of 19
Anonymous
in reply to: maxim_k

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:

Message 11 of 19
Rob67ert
in reply to: Anonymous

Change the mcstyle for standard and it will work.
I guess you are missing the mcstyle font
Robert

If you find this reply helpful ? It would be nice if you use the Accept as Solution or Kudos button below.
Message 12 of 19
maxim_k
in reply to: Anonymous

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:

2017-01-19_11-48-23.png

 

 

 

Maxim


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 13 of 19
pendean
in reply to: Anonymous

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.

 

Capture.JPG

 

 

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.

Message 14 of 19
Anonymous
in reply to: maxim_k

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

Message 15 of 19
john.vellek
in reply to: Anonymous

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


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 16 of 19
maxim_k
in reply to: john.vellek


@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:2018-02-14_08-19-03.png

 

 

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:2018-02-14_08-18-48.png

 

 

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


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 17 of 19
Anonymous
in reply to: john.vellek

Thank you for answering this. I was able to find the .lin file.. and
textedit which was were I was coming up short before. I will test out the
line code and hopefully everything works out!
Thanks again
Message 18 of 19
Anonymous
in reply to: maxim_k

Thanks for the clarification. After searching through the files
yesterday... I was able to find the path that you mentioned. Also, thanks
for the clarification of the line code. I will try them out today!
Message 19 of 19
john.vellek
in reply to: maxim_k

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


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost