<?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 custom hatch - Arc/circle issue in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497426#M39490</link>
    <description>&lt;P&gt;Thanks Kent Cooper, added&amp;nbsp;Customization.zip below with circle patterns in it.&lt;BR /&gt;Bruno 'Bonuscad' Valsecchi's code posted by gile at: &lt;A href="https://www.theswamp.org/index.php?topic=20355.msg247604#msg247604" target="_blank"&gt;https://www.theswamp.org/index.php?topic=20355.msg247604#msg247604&lt;/A&gt; both displays the pattern of a selected hatch then offers to save it to a pat file.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2022 20:15:28 GMT</pubDate>
    <dc:creator>TomBeauford</dc:creator>
    <dc:date>2022-10-20T20:15:28Z</dc:date>
    <item>
      <title>Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11496601#M39485</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing this post as I couldn't accomplish a particular design of a custom hatch in AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being aware of the impossibility to script an arc or a circle in the &lt;EM&gt;acasiso.pat&lt;/EM&gt; file, I created instead a polygon inscribed in a circle to mimic the desired arc path.&lt;BR /&gt;The final design resulted in 18 lines (see picture); however, I couldn't find a way to script them in the .pat file (I am aware of the SUPERHATCH command, but it is not what I am looking for this issue).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;At the moment I am able to code only simple lines with standard angles, so I would be immensely glad if someone could help in sharing a method to achieve the desired result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read the very helpful threads from here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-forum/how-to-create-a-custom-hatch-with-an-arc-or-circle/td-p/10363826" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-forum/how-to-create-a-custom-hatch-with-an-arc-or-circle/td-p/10363826&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-forum/creating-custom-circular-hatch-pattern/m-p/9493360#M1018963" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-forum/creating-custom-circular-hatch-pattern/m-p/9493360#M1018963&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but they do not really tackle the situation I am now in.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help,&lt;BR /&gt;Andrea.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 15:20:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11496601#M39485</guid>
      <dc:creator>andstocco</dc:creator>
      <dc:date>2022-10-20T15:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11496873#M39486</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9193435"&gt;@andstocco&lt;/a&gt;&amp;nbsp;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it looks like a shingle hatch pattern, have you looked on web to find such, there are platy including free.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cadblocksdwg.com/roof-hatch-autocad.html" target="_blank"&gt;https://www.cadblocksdwg.com/roof-hatch-autocad.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 16:47:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11496873#M39486</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2022-10-20T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497079#M39487</link>
      <description>&lt;P&gt;I hope you can find an existing pattern that suits your needs, as suggested.&amp;nbsp; If you need to define your own, study how they are defined in the &lt;A href="https://help.autodesk.com/view/ACD/2023/ENU/?guid=GUID-A6F2E6FF-1717-44B6-A476-0CA817ADD77E" target="_blank" rel="noopener"&gt;Customization Reference&lt;/A&gt;.&amp;nbsp; It will not be possible for the "arc" in segments to precisely follow the arc shape -- some of the segments will need to have their angles tweaked a little.&amp;nbsp; Every piece needs to be part of a line "family" lying along an infinite line, with pen-down parts and pen-up gaps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the attached, I exploded it and colored some pieces.&amp;nbsp; The blue segment must be in a family with something that falls along the same line [the magenta extension] farther along, and it looks like that won't take much of a tweak of the angle, because it's pretty close to hitting the same segment in another "arc," off to the right.&amp;nbsp; The green one's extension is cyan, and that misses by a greater amount; it could be made to incorporate that next green segment with a somewhat greater tweak of the angle, or it could reach farther beyond the included area to get closer to a "hit."&amp;nbsp; The red one's extension is yellow, and that's obviously not going to hit a close follower until farther out of the pattern area included.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those are the kinds of complications involved.&amp;nbsp; &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/architectural-concrete-hatch/m-p/11494101/highlight/true#M438015" target="_blank" rel="noopener"&gt;This recent post&lt;/A&gt; has a pattern for "circles" of 24 segments, so you can see how many lines of code it takes to define such a thing.&amp;nbsp; I would recommend you consider whether fewer segments can be sufficiently curved-looking at the scales at which you would use the pattern, because it would greatly simplify the pattern definition.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 17:50:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497079#M39487</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-10-20T17:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497279#M39488</link>
      <description>&lt;P&gt;Drawing attached with circular Hatch patterns in it. Wouldn't allow me to attach the pat files but you can extract them with&amp;nbsp;GETPAT.LSP from&amp;nbsp;&lt;A href="https://www.thesourcecad.com/how-to-export-and-import-custom-hatch-pattern-in-autocad/" target="_blank"&gt;https://www.thesourcecad.com/how-to-export-and-import-custom-hatch-pattern-in-autocad/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 19:12:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497279#M39488</guid>
      <dc:creator>TomBeauford</dc:creator>
      <dc:date>2022-10-20T19:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497400#M39489</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/540307"&gt;@TomBeauford&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... Wouldn't allow me to attach the pat files ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;[You can .zip them and attach the .zip file.]&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 20:03:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497400#M39489</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-10-20T20:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497426#M39490</link>
      <description>&lt;P&gt;Thanks Kent Cooper, added&amp;nbsp;Customization.zip below with circle patterns in it.&lt;BR /&gt;Bruno 'Bonuscad' Valsecchi's code posted by gile at: &lt;A href="https://www.theswamp.org/index.php?topic=20355.msg247604#msg247604" target="_blank"&gt;https://www.theswamp.org/index.php?topic=20355.msg247604#msg247604&lt;/A&gt; both displays the pattern of a selected hatch then offers to save it to a pat file.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 20:15:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497426#M39490</guid>
      <dc:creator>TomBeauford</dc:creator>
      <dc:date>2022-10-20T20:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497485#M39491</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/52747"&gt;@Moshe-A&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I found your resource helpful, and for sure I will have a use of it in the future.&lt;BR /&gt;However, I am now very interested in learning the actual process of scripting a personal design hatch.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 20:46:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497485#M39491</guid>
      <dc:creator>andstocco</dc:creator>
      <dc:date>2022-10-20T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497517#M39492</link>
      <description>&lt;P&gt;This may be helpful by Eldon Over at Cadtutor.&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-1666299436339.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1130121iB8AB8FF63CFC7A53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1666299436339.png" alt="SeaHaven_0-1666299436339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 20:59:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497517#M39492</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-10-20T20:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497519#M39493</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;. This is actually what I have been investigating in my own trial-and-error test before posting it here. I am glad I had an intuition similar to your clear explanation.&lt;BR /&gt;I have been previously referring to the link you sent me (from autodesk) and check the tough code on the other thread beforehand, but it leave me with some questions.&lt;BR /&gt;&lt;BR /&gt;1) are certain patterns (like mine in this instance) "wrong"? I mean, if the lines are not correctly aligned in certain angles, is it then not possible to code them?&lt;BR /&gt;2) if I will decrease the number of lines which miming the arc (let's say from 15 to 7) and geometrically calculated their correct intervals, how can I actually get the coordinates of the lines in an automated way (without dimensioning them "by hand")? I believe that the code of the 24-lines in the other post has been automatically processed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, is this (&lt;A href="https://cadtips.cadalyst.com/patterns/hatch-maker" target="_blank"&gt;Hatch Maker | CAD Tips (cadalyst.com)&lt;/A&gt;&amp;nbsp;a resource which can be used in my case? I retrieve it from the post you sent me, but I am not sure if it will possible to adapt it to my case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am sorry if my doubts might be obvious or stated "incorrectly". I am almost new to this domain.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 21:07:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497519#M39493</guid>
      <dc:creator>andstocco</dc:creator>
      <dc:date>2022-10-20T21:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497529#M39494</link>
      <description>Very useful resource for many situation, thanks.&lt;BR /&gt;Still not sure, however, how and what I can (and cannot) code in my own situation.</description>
      <pubDate>Thu, 20 Oct 2022 21:03:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497529#M39494</guid>
      <dc:creator>andstocco</dc:creator>
      <dc:date>2022-10-20T21:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497541#M39495</link>
      <description>&lt;P&gt;Clear scheme,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;, will keep it in mind.&lt;BR /&gt;It summarize the overall concept, but it is hard to extend it to way broader system of lines with different angles.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 21:09:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497541#M39495</guid>
      <dc:creator>andstocco</dc:creator>
      <dc:date>2022-10-20T21:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497613#M39496</link>
      <description>&lt;P&gt;Trying to hand write is difficult maybe do a write to file, start with object at 0,0 then when click on object write out X,Y,ang,length do in correct sequence. May need more values per line as per image. This way have a start. I think angle is degrees.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compare to a pattern already made using one of the Make Hatch lisp.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 22:02:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11497613#M39496</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-10-20T22:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom hatch - Arc/circle issue</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11498328#M39497</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;You asked:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;1) are certain patterns (like mine in this instance) "wrong"? I mean, if the lines are not correctly aligned in certain angles, is it then not possible to code them?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nothing goes "wrong" until the numerical precision required to specify the pattern exceeds that handled by AutoCAD.&lt;/P&gt;&lt;P&gt;In practice satisfactory results result well within this limitation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2) if I will decrease the number of lines which miming the arc (let's say from 15 to 7) and geometrically calculated their correct intervals, how can I actually get the coordinates of the lines in an automated way (without dimensioning them "by hand")? I believe that the code of the 24-lines in the other post has been automatically&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;processed.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Study the code in Hatchmaker.lsp as a starting point.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Finally, is this (&lt;A href="https://cadtips.cadalyst.com/patterns/hatch-maker" target="_blank" rel="nofollow noopener noreferrer"&gt;Hatch Maker | CAD Tips (cadalyst.com)&lt;/A&gt;&amp;nbsp;a resource which can be used in my case? I retrieve it from the post you sent me, but I am not sure if it will possible to adapt it to my case.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HatchMaker confines pattern definition to be laid out within a unit square upon a 0.01 unit mesh.&amp;nbsp; To globally scale its output to suit larger squares you should multiply all numeric terms within the generated .PAT apart from the first (the angle) by a factor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your original sketch suggests it may be possible to lay out and scale up from elements defined within these limitations.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: if you wish finer precision than 0.01 you may find Autolisp unacceptably slow when handling extreme cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hugh Adamson&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.hatchkit.com.au" target="_blank" rel="noopener"&gt;www.hatchkit.com.au&lt;/A&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;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Oct 2022 07:18:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-hatch-arc-circle-issue/m-p/11498328#M39497</guid>
      <dc:creator>hugha</dc:creator>
      <dc:date>2022-10-21T07:18:04Z</dc:date>
    </item>
  </channel>
</rss>

