<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create a new line type in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13769767#M165929</link>
    <description>&lt;P&gt;Alan hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i was expecting is your feedback on the program as a user. if can not run it never mind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Moshe&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Aug 2025 05:56:16 GMT</pubDate>
    <dc:creator>Moshe-A</dc:creator>
    <dc:date>2025-08-16T05:56:16Z</dc:date>
    <item>
      <title>Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13733520#M165352</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am looking for a freelancer who can create a new type of line for AutoCAD according to the attached image.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nissan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 10:56:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13733520#M165352</guid>
      <dc:creator>nissan</dc:creator>
      <dc:date>2025-07-21T10:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13733839#M165353</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Bonjour&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9395075"&gt;@nissan&lt;/a&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;from what I know,&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;it is not possible with a native command.&lt;BR /&gt;You cannot set a thickness with line types.&lt;BR /&gt;I tried with Mline but there too it is not possible to put a thickness.&lt;BR /&gt;If they are only two-point and straight segments, a solution would be to make a dynamic block maybe!.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-07-21_16-14-25.gif" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1554392i1F5332F8C5850946/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2025-07-21_16-14-25.gif" alt="2025-07-21_16-14-25.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Amicalement&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 14:15:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13733839#M165353</guid>
      <dc:creator>-didier-</dc:creator>
      <dc:date>2025-07-21T14:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13733916#M165355</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have this which is near (you might have to change the Y scale to get closer to your pattern, I'll let you do that)&lt;/P&gt;&lt;P&gt;Simply copy and paste the following on the command line and the "ALTERNATIVE" line type will be available.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;((lambda ( / f_lin doc)
  (if (not (tblsearch "STYLE" "ALTERNATIVE"))
    (entmakex
      '(
        (0 . "STYLE")
        (100 . "AcDbSymbolTableRecord")
        (100 . "AcDbTextStyleTableRecord")
        (2 . "ALTERNATIVE")
        (70 . 0)
        (40 . 0.0)
        (41 . 1.0)
        (50 . 0.0)
        (71 . 0)
        (42 . 1.0)
        (3 . "ARIAL.TTF")
        (4 . "")
       )
    )
  )
  (entmake
    (list
      '(0 . "LTYPE")
      '(100 . "AcDbSymbolTableRecord")
      '(100 . "AcDbLinetypeTableRecord")
      '(2 . "ALTERNATIVE")
      '(70 . 0)
      '(3 . "alterné")
      '(72 . 65)
      '(73 . 3)
      '(40 . 1.287)
      '(49 . 0.0)
      '(74 . 2)
      '(75 . 0)
      (CONS 340 (TBLOBJNAME "STYLE" "ALTERNATIVE"))
      '(46 . 1.0)
      '(50 . 0.0)
      '(44 . -0.595)
      '(45 . -0.3215)
      '(9 . "■")
      '(49 . -0.6435)
      '(74 . 2)
      '(75 . 0)
      (CONS 340 (TBLOBJNAME "STYLE" "ALTERNATIVE"))
      '(46 . 1.0)
      '(50 . 0.0)
      '(44 . -0.595)
      '(45 . -0.3215)
      '(9 . "□")
      '(49 . -0.6435)
      '(74 . 0)
    )
  )
  (if (not (findfile "ALTERNATIVE.lin"))
    (progn
      (setq f_lin (open (strcat (getvar "ROAMABLEROOTPREFIX") "support\\ALTERNATIVE.lin") "w"))
      (write-line "*ALTERNATIVE,black-white" f_lin)
      (write-line "A,0,[\"\\U+25A0\",ALTERNATIVE,S=1,R=0,X=-0.595,Y=-0.3215],-0.6435,[\"\\U+25A1\",ALTERNATIVE,S=1,R=0,X=-0.595,Y=-0.3215],-0.6435" f_lin)
      (close f_lin)
    )
  )
  (setq doc (vla-get-activedocument (vlax-get-acad-object)))
  (if
    (and
      (not
        (vlax-for item (vla-get-linetypes doc)
          (if (= (strcase (vla-get-name item)) (strcase "ALTERNATIVE")) T)
        )
      )
      (vl-catch-all-error-p
        (vl-catch-all-apply
          'vla-load
          (list (vla-get-Linetypes doc) "ALTERNATIVE" "ALTERNATIVE.lin")
        )
      )
    )
    nil
    T
  )
  (princ "\nType Line \"ALTERNATIVE\" created!")
  (prin1)
))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 15:05:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13733916#M165355</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2025-07-21T15:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13734054#M165357</link>
      <description>&lt;P&gt;The same kind of thing has been requested multiple times before.&amp;nbsp; If I can find an example, I'll post a link, but you should do some Searching.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; I found &lt;A href="https://forums.autodesk.com/t5/autocad-forum/storm-sewer-linetype/m-p/13321043/highlight/true#M3883" target="_blank" rel="noopener"&gt;&amp;gt;this&amp;lt;&lt;/A&gt;, which indicates that the one I was really looking for is no longer accessible.&amp;nbsp; But if that kind of thing might work for you, I do have Shape and Linetype definitions that will do it.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1753117585459.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1554460i2107D5529AA1DCCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1753117585459.png" alt="Kent1Cooper_0-1753117585459.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But it can't do the edges in a different color than the mid-line wide parts, as in your image -- that is not possible in a linetype definition.&amp;nbsp; The color difference is possible in a MultiLine Style, but I don't think the fill-the-space width part is, and you wouldn't be able to do curves at all.&lt;/P&gt;
&lt;P&gt;I think if you find suggestions in other similar Topics, the main one will involve a wide dashed Polyline with the edges Offset from it by half its width, and given zero width themselves.&amp;nbsp; There may be routines out there to automate that for you, but the result will be three independent Polylines, so revising the route will skew the relationship.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 17:15:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13734054#M165357</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-07-21T17:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13734187#M165360</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Bonjour&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/524107"&gt;@CADaSchtroumpf&lt;/a&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;wow! really clever the idea of using shapes via exotic fonts! &lt;BR /&gt;Well done, I am happy to be contradicted.&lt;BR /&gt;The French Autolisp still shines!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Amicalement&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 18:13:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13734187#M165360</guid>
      <dc:creator>-didier-</dc:creator>
      <dc:date>2025-07-21T18:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13734468#M165364</link>
      <description>&lt;P&gt;I have been making that linetype for years, use it for stormwater pipes. Ok I cheat the outside is 2 plines and the center is a pline with a width, the outsides&amp;nbsp; and inside can be different layers. The width matches a pipe diameter, the length of the solid is set to 2.35 a length of a pipe. It uses the linetype I called Equal so just set linetype scale.&lt;/P&gt;&lt;P&gt;Will post some code I wrote originally in 2014 so needs updating only does lines at moment. Has lots of sizes preset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1753140172437.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1554518iFD3B56AE536FEEEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1753140172437.png" alt="SeaHaven_0-1753140172437.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 23:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13734468#M165364</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-07-21T23:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13734865#M165366</link>
      <description>&lt;P&gt;It looks good. can you send the code ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 07:42:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13734865#M165366</guid>
      <dc:creator>nissan</dc:creator>
      <dc:date>2025-07-22T07:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13736053#M165374</link>
      <description>&lt;P&gt;Give this a try but you must have the "Equal" linetype loaded save in your dwt etc. I have to add a check ltscale as it will effect the pipe spacing also.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;*EQUAL,_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
A,1.0,-1.0&lt;/LI-CODE&gt;&lt;P&gt;I work metric so may need mod for answers in feet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 02:24:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13736053#M165374</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-07-23T02:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13768575#M165907</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would like your deep pro opinion on the attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 06:58:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13768575#M165907</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-08-15T06:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13769576#M165922</link>
      <description>&lt;P&gt;I am using Bricscad more these days. Sent you a pm.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 23:16:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13769576#M165922</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-08-15T23:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13769767#M165929</link>
      <description>&lt;P&gt;Alan hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i was expecting is your feedback on the program as a user. if can not run it never mind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Moshe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Aug 2025 05:56:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13769767#M165929</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-08-16T05:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new line type</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13771157#M165945</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;&amp;nbsp;had a look at it and the dcl was impressive as a front end. Using the 3 plines etc is a simple way around the task in my case draw a stormwater pipe, the pline wdith was set as diameter and length was 2.3 long so for concrete pipes could simply count the number of pipes needed on short pipes. As your making a block of answer why not use a pline with an Equal spacing and correct width then no solids.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re using solid, many years ago the reason I wrote the 3 line version was that an older version used solid's so erasing was a problem as it left solids behind. Looking again could maybe use Group to combine the 3 lines. I will try to find a version that I had extended and trimmed the lines to suit the connection to drainage pits when on an angle a common task in civil works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1755477074412.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1561970iF3D419D9463D724F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1755477074412.png" alt="SeaHaven_0-1755477074412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 00:34:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-new-line-type/m-p/13771157#M165945</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-08-18T00:34:03Z</dc:date>
    </item>
  </channel>
</rss>

