TheSwamp

CAD Forums => CAD General => Topic started by: nobody on November 22, 2016, 12:30:47 AM

Title: What is simplest way to make custom linetypes?
Post by: nobody on November 22, 2016, 12:30:47 AM
What is simplest way to make custom linetypes?  Are there better methods than manually creating/entering info into a .lin file?
Title: Re: What is simplest way to make custom linetypes?
Post by: Atook on November 22, 2016, 12:34:59 AM
Here's a favorite of mine (http://www.theswamp.org/index.php?topic=21339.msg258481#msg258481). :)
Title: Re: What is simplest way to make custom linetypes?
Post by: nobody on November 22, 2016, 02:27:56 AM
Thank you, will give that a shot   :-D
Title: Re: What is simplest way to make custom linetypes?
Post by: ronjonp on November 22, 2016, 10:21:50 AM
HERE (https://www.theswamp.org/index.php?topic=47058.msg520876#msg520876) is the latest version of that code ... quite a few more options.  8)
Title: Re: What is simplest way to make custom linetypes?
Post by: roy_043 on November 22, 2016, 04:18:57 PM
@ronjonp:
Just a hint: Reading your code I see that you are using X=0 and unequal text gaps to position the text. This works fine for straight line segments, but not for long texts in tight curves.
Title: Re: What is simplest way to make custom linetypes?
Post by: ronjonp on November 22, 2016, 05:33:29 PM
@ronjonp:
Just a hint: Reading your code I see that you are using X=0 and unequal text gaps to position the text. This works fine for straight line segments, but not for long texts in tight curves.
How would you solve this ? I've never gotten long text to look pretty on curves.
Title: Re: What is simplest way to make custom linetypes?
Post by: roy_043 on November 23, 2016, 05:10:19 AM
You are right: long texts do not look good on curves. But using equal text gaps is better.
Note that some people on the Autodesk team do not seem to know this either (https://knowledge.autodesk.com/support/autocad-lt/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-LT/files/GUID-FEDCE7EB-4919-43AE-A54E-F3A293DD60CA-htm.html). :-D

Code: [Select]
*BAD, Gaps not equal
A,10,-1,["TestTestTest",STANDARD,S=2,R=0,X=0,Y=-],-17

*BETTER, Gaps equal
A,10,-9,["TestTestTest",STANDARD,S=2,R=0,X=-8,Y=-],-9
Title: Re: What is simplest way to make custom linetypes?
Post by: ronjonp on November 23, 2016, 04:11:18 PM
Thanks for taking the time to look at this Roy. I've updated the code HERE (https://www.theswamp.org/index.php?topic=47058.msg520876#msg520876).