Author Topic: What is simplest way to make custom linetypes?  (Read 2131 times)

0 Members and 1 Guest are viewing this topic.

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
What is simplest way to make custom linetypes?
« 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?

Atook

  • Swamp Rat
  • Posts: 1027
  • AKA Tim
Re: What is simplest way to make custom linetypes?
« Reply #1 on: November 22, 2016, 12:34:59 AM »

nobody

  • Swamp Rat
  • Posts: 861
  • .net stuff
Re: What is simplest way to make custom linetypes?
« Reply #2 on: November 22, 2016, 02:27:56 AM »
Thank you, will give that a shot   :-D

ronjonp

  • Needs a day job
  • Posts: 7526
Re: What is simplest way to make custom linetypes?
« Reply #3 on: November 22, 2016, 10:21:50 AM »
HERE is the latest version of that code ... quite a few more options.  8)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: What is simplest way to make custom linetypes?
« Reply #4 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.

ronjonp

  • Needs a day job
  • Posts: 7526
Re: What is simplest way to make custom linetypes?
« Reply #5 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.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: What is simplest way to make custom linetypes?
« Reply #6 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. :-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
« Last Edit: November 23, 2016, 05:14:30 AM by roy_043 »

ronjonp

  • Needs a day job
  • Posts: 7526
Re: What is simplest way to make custom linetypes?
« Reply #7 on: November 23, 2016, 04:11:18 PM »
Thanks for taking the time to look at this Roy. I've updated the code HERE.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC