<?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: Draw a hatch without boundaries like a rectangle in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055529#M28108</link>
    <description>Thank you very much, works just as wanted.&lt;BR /&gt;&lt;BR /&gt;As an addition (if not too much work) it would be great if the settings were called up separately.&lt;BR /&gt;So that I don't have to skip all 3 settings every time I run the command.</description>
    <pubDate>Fri, 23 Jun 2023 10:39:17 GMT</pubDate>
    <dc:creator>thomas_schluesselberger</dc:creator>
    <dc:date>2023-06-23T10:39:17Z</dc:date>
    <item>
      <title>Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055116#M28100</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to quickly draw a hatch without a boundary.&lt;/P&gt;&lt;P&gt;I want to draw it as if it were a rectangle. That means:&lt;/P&gt;&lt;P&gt;Execute command -&amp;gt; specify first vertex -&amp;gt; specify second vertex.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In addition, I want to be able to enter the formatting (layer, color, hatch type) in advance.&lt;/P&gt;&lt;P&gt;The formatting should be saved after entering it once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone has a solution.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 07:54:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055116#M28100</guid>
      <dc:creator>thomas_schluesselberger</dc:creator>
      <dc:date>2023-06-23T07:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055348#M28101</link>
      <description>&lt;P&gt;Draw a rectangle, hatch that rectangle, erase the rectangle.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 09:33:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055348#M28101</guid>
      <dc:creator>johnyDFFXO</dc:creator>
      <dc:date>2023-06-23T09:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055460#M28102</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;not dynamic.&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;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:rect_hatch (/ pattern_name_saved hatch_layer_saved hatch_color_saved 1st_corner 2nd_corner 
					   rectangle hatch_object outer_loop option_selected
					)
	(if (and
			(null pattern_name)
			(setq pattern_name "SOLID")
		)
            (setq pattern_name_saved "SOLID")
            (setq pattern_name_saved pattern_name)
    )
	(if (and
			(null hatch_layer)
			(setq hatch_layer "RECT_HATCH")
		)
            (setq hatch_layer_saved "RECT_HATCH")
            (setq hatch_layer_saved hatch_layer)
    )
	(if (and 
			(null hatch_color)
			(setq hatch_color 1)
		)
            (setq hatch_color_saved 1)
            (setq hatch_color_saved hatch_color)
    )
	(while (null option_selected) 
		(initget "Pattern Layer Color")
		(setq option_selected (getkword "Select option [Pattern/Layer/Color] or Space/Enter to skip: "))
		(cond 
			(
				(= "Pattern" option_selected)
					(setq pattern_name (strcase (getstring (strcat "\nEnter hatch pattern name &amp;lt;" pattern_name_saved "&amp;gt;: ")))
						  option_selected nil
					)
			)
			(
				(= "Layer" option_selected)
					(setq hatch_layer (getstring t (strcat "\nEnter hatch layer name &amp;lt;" hatch_layer_saved "&amp;gt;: "))
						  option_selected nil
					)
			)
			(
				(= "Color" option_selected)
					(setq hatch_color (getint (strcat "\nEnter color index for hatch &amp;lt;" (itoa hatch_color_saved) "&amp;gt;: "))
						  option_selected nil
					)
			)
			(
				t
					(setq  option_selected t)
			)
		)
	)
	(setq 1st_corner (getpoint "\nPick 1st coner of hatch: ")
		  2nd_corner (getcorner 1st_corner "\nPick 2nd corner of hatch: ")  
	)
	(if (= "" pattern_name)
            (setq pattern_name pattern_name_saved)
            (setq pattern_name_saved pattern_name)
    )
	(if (= "" hatch_layer)
            (setq hatch_layer hatch_layer_saved)
            (setq hatch_layer_saved hatch_layer)
    )
	(if (null hatch_color)
            (setq hatch_color hatch_color_saved)
            (setq hatch_color_saved hatch_color)
    )
	(command "_.rectang" 1st_corner 2nd_corner)
	(setq rectangle (vlax-ename-&amp;gt;vla-object (entlast))) 
	(setq hatch_object (vla-addhatch (vla-get-block (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
									 achatchpatterntypepredefined
									 pattern_name
									 :vlax-false
									 achatchobject
					   )
	)
	(vlax-safearray-put-element (setq outer_loop (vlax-make-safearray vlax-vbobject '(0 . 0))) 0 rectangle)
	(vla-appendouterloop hatch_object outer_loop)
	(vla-put-color hatch_object hatch_color)
	(entmod (subst (cons 8 hatch_layer) (assoc 8 (entget (vlax-vla-object-&amp;gt;ename hatch_object))) (entget (vlax-vla-object-&amp;gt;ename hatch_object))))  
	(vla-erase rectangle)
	(princ)
)&lt;/LI-CODE&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 11:08:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055460#M28102</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-06-23T11:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055480#M28103</link>
      <description>"I'm looking for a way to quickly draw a hatch without a boundary."</description>
      <pubDate>Fri, 23 Jun 2023 10:20:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055480#M28103</guid>
      <dc:creator>thomas_schluesselberger</dc:creator>
      <dc:date>2023-06-23T10:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055489#M28104</link>
      <description>&lt;P&gt;Hi, thanks for your anwser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But sadly i get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; Error: Bad argument type: stringp nil&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 10:23:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055489#M28104</guid>
      <dc:creator>thomas_schluesselberger</dc:creator>
      <dc:date>2023-06-23T10:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055503#M28105</link>
      <description>&lt;P&gt;You can do this directly, without any custom code, within the &lt;A href="https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-410ECEBF-7CC2-4000-A45E-18F1F6BEE423" target="_blank" rel="noopener"&gt;-HATCH command&lt;/A&gt; [&lt;EM&gt;note the &lt;U&gt;hyphen prefix&lt;/U&gt;&lt;/EM&gt;].&amp;nbsp; Choose the "&lt;STRONG&gt;&lt;FONT color="#000000"&gt;dra&lt;FONT color="#0000FF"&gt;W&lt;/FONT&gt; boundary&lt;/FONT&gt;&lt;/STRONG&gt;" option, and you get a choice of &lt;EM&gt;whether or not&lt;/EM&gt; to keep the boundary.&amp;nbsp; You can draw it as you would a Polyline, including the option of arc segments.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 10:26:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055503#M28105</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-06-23T10:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055516#M28106</link>
      <description>&lt;P&gt;sorry, check the update above.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 10:32:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055516#M28106</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-06-23T10:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055523#M28107</link>
      <description>I know this method but it aint really fast.&lt;BR /&gt;But thanks!</description>
      <pubDate>Fri, 23 Jun 2023 10:35:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055523#M28107</guid>
      <dc:creator>thomas_schluesselberger</dc:creator>
      <dc:date>2023-06-23T10:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055529#M28108</link>
      <description>Thank you very much, works just as wanted.&lt;BR /&gt;&lt;BR /&gt;As an addition (if not too much work) it would be great if the settings were called up separately.&lt;BR /&gt;So that I don't have to skip all 3 settings every time I run the command.</description>
      <pubDate>Fri, 23 Jun 2023 10:39:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055529#M28108</guid>
      <dc:creator>thomas_schluesselberger</dc:creator>
      <dc:date>2023-06-23T10:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055574#M28109</link>
      <description>&lt;P&gt;sure. check update.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 11:03:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055574#M28109</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-06-23T11:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055589#M28110</link>
      <description>&lt;P&gt;One could be thinking, why the extra step is necessary.&lt;/P&gt;&lt;P&gt;(getpoint "\nPick 1st corner of hatch or [Pattern/Layer/Color]: ")&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 11:08:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055589#M28110</guid>
      <dc:creator>johnyDFFXO</dc:creator>
      <dc:date>2023-06-23T11:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055764#M28111</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13278717"&gt;@thomas_schluesselberger&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;"I'm looking for a way to quickly draw a hatch without a boundary."&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;They were trying to teach you to fish, not hand you one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 12:46:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055764#M28111</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2023-06-23T12:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055809#M28112</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7872421"&gt;@johnyDFFXO&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;One could be thinking, why the extra step is necessary.&lt;/P&gt;
&lt;P&gt;(getpoint "\nPick 1st corner of hatch or [Pattern/Layer/Color]: ")&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A bypass is built into that LISP, along with defaults you can change.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 13:02:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12055809#M28112</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2023-06-23T13:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a hatch without boundaries like a rectangle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12057379#M28113</link>
      <description>&lt;P&gt;There is 2 point rectang code out there does not take much to work out the 4 points or a start point and length and width, the reason that I say that is you dismissed Kent's suggestion, but it could be written as a lisp so would be super fast, start the -hatch command and pass all the correct answers. No "draW boundary" in my version of Bricscad, so no code.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 02:22:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/draw-a-hatch-without-boundaries-like-a-rectangle/m-p/12057379#M28113</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-06-24T02:22:25Z</dc:date>
    </item>
  </channel>
</rss>

