<?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: AutoCAD LT AutoLISP - Hatch LISP routine colour issues in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13813945#M166652</link>
    <description>&lt;P&gt;Setting HatchBackgroundColor has never been the actual issue. It was the following line...&amp;nbsp;&lt;SPAN&gt;"_PickPoints"&lt;/SPAN&gt;&amp;nbsp;that broke the flow of the command. By removing that one, it works as expected.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Sep 2025 06:36:19 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2025-09-17T06:36:19Z</dc:date>
    <item>
      <title>AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13802151#M166479</link>
      <description>&lt;P&gt;AutoCAD LT 2025&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a lisp routine that:&lt;/P&gt;&lt;P&gt;- creates layer (if not already created) called 'Earth Hatch 2' - colour '11'&lt;/P&gt;&lt;P&gt;- enables hatching of multiple pick points&lt;/P&gt;&lt;P&gt;- Hatch pattern 'Earth'&lt;/P&gt;&lt;P&gt;- Hatch scale '35'&lt;/P&gt;&lt;P&gt;- Hatch angle '45'&lt;/P&gt;&lt;P&gt;- Successfully places hatch on colour 11 regardless of previous hatch colour settings being set to:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;'ByLayer', 'ByBlock', 'Use Current' or set to an index colour.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Allows for furture hatches, created via the normal hatch command, to be created on the current layer at the time as opposed to continuing to be created on 'Earth Hatch 2' layer.&lt;/P&gt;&lt;P&gt;- Allows for furture hatches, created via the normal hatch command, not to retain the same attributes set by the LISP routine i.e. scale, angle, colour, though to remain what ever the settings were previously set to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code works perfectly except:&lt;/P&gt;&lt;P&gt;- requires you to press 'enter' to confirm 'none' for background colour.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I would like this to happen automatically.&lt;/P&gt;&lt;P&gt;- Future hatches are created on colour 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I understand it AutoCAD LT has limits regarding how you can set the colour for hatches through LISP routines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- The background color prompt cannot be suppressed or auto-answered through LISP.&lt;/P&gt;&lt;P&gt;- LT doesn’t let you set it directly by LISP&lt;BR /&gt;&lt;BR /&gt;Can someone please help me remove the prompt for 'new background colour' after initiating the LISP routine?&lt;BR /&gt;&lt;BR /&gt;Many thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;;; ERH17M-MP18 — Earth hatch, multiple pick points&lt;BR /&gt;(defun c:ERH17M-MP18 ( / oldce oldlay oldhpname oldhpscale oldhpang oldhplayer lay)&lt;BR /&gt;;; Save environment &amp;amp; hatch defaults&lt;BR /&gt;(setq oldce (getvar "CMDECHO"))&lt;BR /&gt;(setq oldlay (getvar "CLAYER"))&lt;BR /&gt;(setq oldhpname (getvar "HPNAME"))&lt;BR /&gt;(setq oldhpscale (getvar "HPSCALE"))&lt;BR /&gt;(setq oldhpang (getvar "HPANG"))&lt;BR /&gt;(setq oldhplayer (getvar "HPLAYER"))&lt;/P&gt;&lt;P&gt;(setvar "CMDECHO" 0) ; quiet mode&lt;/P&gt;&lt;P&gt;(setq lay "Earth Hatch 2")&lt;/P&gt;&lt;P&gt;;; Ensure layer exists and is colour 11&lt;BR /&gt;(if (tblsearch "LAYER" lay)&lt;BR /&gt;(vl-cmdf "_.-LAYER" "C" "11" lay "")&lt;BR /&gt;(vl-cmdf "_.-LAYER" "N" lay "C" "11" lay "")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; Temporarily make Earth Hatch 2 current&lt;BR /&gt;(setvar "CLAYER" lay)&lt;/P&gt;&lt;P&gt;;; Start hatch with full property setup&lt;BR /&gt;(vl-cmdf&lt;BR /&gt;"_.-HATCH"&lt;BR /&gt;"_Properties" "EARTH" "35" "45"&lt;BR /&gt;"_Layer" lay&lt;BR /&gt;"_Color" "11" ;; &amp;lt;- force hatch colour to 11, independent of HPCOLOR&lt;BR /&gt;"_PickPoints"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; Allow multiple picks until user presses Enter&lt;BR /&gt;(while (= 1 (getvar "CMDACTIVE"))&lt;BR /&gt;(command pause)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; Restore hatch defaults&lt;BR /&gt;(if oldhpname (setvar "HPNAME" oldhpname))&lt;BR /&gt;(if oldhpscale (setvar "HPSCALE" oldhpscale))&lt;BR /&gt;(if oldhpang (setvar "HPANG" oldhpang))&lt;BR /&gt;(if oldhplayer (setvar "HPLAYER" oldhplayer))&lt;/P&gt;&lt;P&gt;;; Restore previous layer and CMDECHO&lt;BR /&gt;(setvar "CLAYER" oldlay)&lt;BR /&gt;(setvar "CMDECHO" oldce)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 04:41:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13802151#M166479</guid>
      <dc:creator>BigBoyCAD</dc:creator>
      <dc:date>2025-09-09T04:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13802275#M166482</link>
      <description>&lt;P&gt;Use 'HPCOLOR sysvar in the same way you used other HP* sysvars.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 06:30:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13802275#M166482</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2025-09-09T06:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13802993#M166487</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10815047"&gt;@BigBoyCAD&lt;/a&gt;&amp;nbsp;Use and take full advantage of all the HATCH variables and that should help your issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A title="Sets the default angle for new hatch patterns in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-5D218A6C-F3AE-419A-8F0C-0AD704E9CDE9" target="_blank" rel="noopener"&gt;HPANG (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls whether new hatch patterns are annotative in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-D5AAA8E4-D02D-43FA-B999-57E795CC15F5" target="_blank" rel="noopener"&gt;HPANNOTATIVE (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls whether hatches and fills are associative." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-4875C3C9-77E8-49F9-8E91-C89084C76733" target="_blank" rel="noopener"&gt;HPASSOC (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the default background color for new hatch patterns in the current drawing." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-19FA19F4-A8FA-4F6C-BC09-CB0B34E7D571" target="_blank" rel="noopener"&gt;HPBACKGROUNDCOLOR (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls the object type created by HATCH and BOUNDARY in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-1300471B-7F23-4D0B-AC7F-C72AC47D824E" target="_blank" rel="noopener"&gt;HPBOUND (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls whether boundary objects are created for new hatches and fills in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-2B931D42-4FFA-44A5-8E87-27254BF68A12" target="_blank" rel="noopener"&gt;HPBOUNDRETAIN (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the default color for new hatches in the current drawing." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-C5ACE97D-E19F-4F81-B3DA-0F86A688C414" target="_blank" rel="noopener"&gt;HPCOLOR (System Variable) &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls the display of the Hatch and Gradient dialog box and the Hatch Edit dialog box." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-8C19FED5-6024-40A8-AEBD-2AA1C57240B3" target="_blank" rel="noopener"&gt;HPDLGMODE (System Variable)&amp;nbsp;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls whether hatch patterns are doubled for user-defined patterns in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-691E7B7D-28DD-46A0-980D-82FFC0CC0B32" target="_blank" rel="noopener"&gt;HPDOUBLE (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls the drawing mode used when defining new boundaries to hatch or fill." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-B23CFA6A-88E4-4446-B003-BE4A6D766B48" target="_blank" rel="noopener"&gt;HPDRAWMODE (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls the default draw order of new hatches and fills in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-50DE5CC8-9857-46F1-9374-9F1DA3760DC3" target="_blank" rel="noopener"&gt;HPDRAWORDER (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Specifies the maximum gaps between a set of objects that almost enclose an area to still be treated as a closed hatch boundary." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-E58FDE75-CDB6-4625-83A8-D0BA4CF6A96A" target="_blank" rel="noopener"&gt;HPGAPTOL (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls whether the hatch origin is inherited when using the Inherit Properties option in HATCH and HATCHEDIT in the current drawing." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-DD1C25BF-7AF2-4785-8C30-CC8B27C13331" target="_blank" rel="noopener"&gt;HPINHERIT (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls how islands within new hatch boundaries are treated in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-3B578500-B1F3-450E-8C1B-5DEE394B2A27" target="_blank" rel="noopener"&gt;HPISLANDDETECTION (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls whether islands within new hatches and fills are detected in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-1595FDAF-AE59-475B-A8DA-D7D754C16501" target="_blank" rel="noopener"&gt;HPISLANDDETECTIONMODE (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Specifies a default layer for new hatches and fills in the current drawing." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-8B64F625-7DD2-4264-8E59-3936F0992070" target="_blank" rel="noopener"&gt;HPLAYER (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls how non-continuous linetypes are displayed in hatch patterns." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-10E0E411-38C4-4BCE-B9AA-0E03B772DFB2" target="_blank" rel="noopener"&gt;HPLINETYPE (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the maximum number of &amp;quot;enclosed areas&amp;quot; that a single hatch object can have and still automatically switch between solid and pattern hatches during zoom operations." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-407E5F77-E823-4998-AD10-BEE5F2422AB4" target="_blank" rel="noopener"&gt;HPMAXAREAS (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the maximum number of hatch lines that are generated in a hatch operation." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-0DE22398-D77D-40C6-83CA-06A24581539A" target="_blank" rel="noopener"&gt;HPMAXLINES (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the default hatch pattern name in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-C562EB1D-239D-4AFC-BC77-48F174834EE5" target="_blank" rel="noopener"&gt;HPNAME (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the number of hatch boundary objects that can be selected before displaying a warning message." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-FB17EB18-FD84-4CD0-950A-2040CC1D1F86" target="_blank" rel="noopener"&gt;HPOBJWARNING (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the hatch origin point for new hatch patterns relative to the current user coordinate system in the current drawing." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-38993CD0-3F26-400C-BCAF-F82057A059DD" target="_blank" rel="noopener"&gt;HPORIGIN (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls how the default hatch origin point is determined." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-471B755D-69F9-467B-BE6F-103106C1B03A" target="_blank" rel="noopener"&gt;HPORIGINMODE (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Specifies the alignment of new drawn paths to be hatched or filled." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-A1AAAF13-E0F8-4516-BADA-C46282E430AF" target="_blank" rel="noopener"&gt;HPPATHALIGNMENT (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Specifies the width of new drawn paths to be hatched or filled." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-FC906EBC-B990-45B6-8ADE-F1896D47676B" target="_blank" rel="noopener"&gt;HPPATHWIDTH (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Indicates the current method for specifying hatch areas." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-060C1F46-2DCF-40BD-84DB-00C6A1907683" target="_blank" rel="noopener"&gt;HPPICKMODE (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls whether a hatch preview is displayed when specifying a hatch area." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-55E323D8-5BC3-407E-A57C-B18273325604" target="_blank" rel="noopener"&gt;HPQUICKPREVIEW (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the maximum time for a hatch preview to generate before the preview is automatically cancelled." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-4AB77E71-3EA7-41E7-AE43-EFE547149D4C" target="_blank" rel="noopener"&gt;HPQUICKPREVTIMEOUT (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the default scale factor for new hatch patterns in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-B002D6D9-7CF2-43B7-B78F-10BEA710C430" target="_blank" rel="noopener"&gt;HPSCALE (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Controls whether a single hatch object or separate hatch objects are created when operating on several closed boundaries." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-82537D46-06CD-4A2B-9148-1475A3599B12" target="_blank" rel="noopener"&gt;HPSEPARATE (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the default line spacing for new user-defined hatch patterns in this session." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-E7F89BD7-6591-442E-A150-B662F2FCFBFF" target="_blank" rel="noopener"&gt;HPSPACE (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A title="Sets the default transparency for new hatches and fills in the current drawing." href="https://help.autodesk.com/view/ACD/2026//ENU/?guid=GUID-C12451CF-470A-48B2-83A7-92BC0E873936" target="_blank" rel="noopener"&gt;HPTRANSPARENCY (System Variable)&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 09 Sep 2025 12:54:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13802993#M166487</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2025-09-09T12:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13804181#M166512</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37212"&gt;@pendean&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though the issue is that LT doesn't seem to allow you to set the hatch colour or hatch back ground colour via LISP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping to find a work around to avoid the prompt coming&amp;nbsp; that&amp;nbsp;&lt;SPAN&gt;requires you to press 'enter' to confirm 'none' for background colour.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following results occur when trying to designate the&amp;nbsp;HPBACKGROUNDCOLOR system variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;; Set hatch background color to None&lt;BR /&gt;(setvar "HPBACKGROUNDCOLOR" "None")&lt;/P&gt;&lt;P&gt;Results in:&lt;BR /&gt;; error: AutoCAD variable setting rejected: "HPBACKGROUNDCOLOR" "None"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;BR /&gt;;; Set hatch background color to None&lt;BR /&gt;(setvar "HPBACKGROUNDCOLOR" ".")&lt;/P&gt;&lt;P&gt;Results in:&lt;BR /&gt;A color number or standard color name is required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are then required to press enter to confirm 'none' for hatch back ground colour.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 07:05:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13804181#M166512</guid>
      <dc:creator>BigBoyCAD</dc:creator>
      <dc:date>2025-09-10T07:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13804235#M166516</link>
      <description>&lt;P&gt;If there is a glitch with this particular variable, I doubt it would be specific to LT (2024+).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to use this syntax&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(setvar "HPBACKGROUNDCOLOR" "."). &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That would be a preferable way.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If not, you can try (command "HPBACKGROUNDCOLOR" ".")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 07:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13804235#M166516</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2025-09-10T07:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13805288#M166524</link>
      <description>&lt;P&gt;check this subtle mod to your code&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:ERH17M-MP18 ( / oldce oldlay oldhpname oldhpscale oldhpang oldhplayer lay)
;; Save environment &amp;amp; hatch defaults
(setq oldce (getvar "CMDECHO"))
(setq oldlay (getvar "CLAYER"))
(setq oldhpname (getvar "HPNAME"))
(setq oldhpscale (getvar "HPSCALE"))
(setq oldhpang (getvar "HPANG"))
(setq oldhplayer (getvar "HPLAYER"))

(setvar "CMDECHO" 0) ; quiet mode

(setq lay "Earth Hatch 2")

;; Ensure layer exists and is colour 11
(if (tblsearch "LAYER" lay)
(vl-cmdf "_.-LAYER" "C" "11" lay "")
(vl-cmdf "_.-LAYER" "N" lay "C" "11" lay "")
)

;; Temporarily make Earth Hatch 2 current
(setvar "CLAYER" lay)

;; Start hatch with full property setup
(vl-cmdf
"_-HATCH"
"_Properties" "EARTH" "35" "45"
"_Layer" lay
"_Color" "11" ;; &amp;lt;- force hatch colour to 11, independent of HPCOLOR
;;;"_PickPoints"	;	komondormrex
""			;	komondormrex
)

;; Allow multiple picks until user presses Enter
(while (= 1 (getvar "CMDACTIVE"))
(command pause)
)

;; Restore hatch defaults
(if oldhpname (setvar "HPNAME" oldhpname))
(if oldhpscale (setvar "HPSCALE" oldhpscale))
(if oldhpang (setvar "HPANG" oldhpang))
(if oldhplayer (setvar "HPLAYER" oldhplayer))


;; Restore previous layer and CMDECHO
(setvar "CLAYER" oldlay)
(setvar "CMDECHO" oldce)
(princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Sep 2025 18:51:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13805288#M166524</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-09-10T18:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13805584#M166528</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately neither of these approaches solved the issue of eliminating the dialogue box / the need to press enter to confirm background colour.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 23:35:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13805584#M166528</guid>
      <dc:creator>BigBoyCAD</dc:creator>
      <dc:date>2025-09-10T23:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13805586#M166529</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;This was the fix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 23:36:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13805586#M166529</guid>
      <dc:creator>BigBoyCAD</dc:creator>
      <dc:date>2025-09-10T23:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13805651#M166530</link>
      <description>&lt;P&gt;May I please ask..&lt;BR /&gt;&lt;BR /&gt;How would I adjust this to make versions that allow for:&lt;/P&gt;&lt;P&gt;- single selection&amp;nbsp; 'pic&lt;STRONG&gt;K&lt;/STRONG&gt; internal point'&amp;nbsp;hatch&lt;/P&gt;&lt;P&gt;- single selection '&lt;STRONG&gt;S&lt;/STRONG&gt;elect objects' hatch&lt;/P&gt;&lt;P&gt;- multiple&amp;nbsp;selection '&lt;STRONG&gt;S&lt;/STRONG&gt;elect objects' hatch&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with everything else staying the same?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 01:37:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13805651#M166530</guid>
      <dc:creator>BigBoyCAD</dc:creator>
      <dc:date>2025-09-11T01:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13805667#M166534</link>
      <description>&lt;P&gt;Just a quick maybe (getvar 'hpbackgroundcolor) = "NONE" not "None". It worked though in my Bricscad. Part 2 (setvar 'hpbackgroundcolor "32") note string value of color number. or primary color eg "Red"&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 02:14:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13805667#M166534</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-09-11T02:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13806804#M166542</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10815047"&gt;@BigBoyCAD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;with everything else staying the same?&lt;BR /&gt;- single selection&amp;nbsp; 'pic&lt;STRONG&gt;K&lt;/STRONG&gt; internal point'&amp;nbsp;hatch&lt;/P&gt;&lt;P&gt;- single selection '&lt;STRONG&gt;S&lt;/STRONG&gt;elect objects' hatch&lt;/P&gt;&lt;P&gt;- multiple&amp;nbsp;selection '&lt;STRONG&gt;S&lt;/STRONG&gt;elect objects' hatch&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;pure single internal point imho may be done with using boundary to check if there is applicable area for hatching, etc. otherwise double space using code from message 6...&amp;nbsp;&lt;/P&gt;&lt;P&gt;single pick may be done just fine. see attached&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;ERH17M-MP18_Single_Pick.lsp&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;multiple picks will require double space to end picking, which is not good for the program. &lt;EM&gt;&lt;STRONG&gt;see attached&amp;nbsp;ERH17M-MP18_Multiple_Picks.lsp&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;multiple selection will also require&amp;nbsp;double space to end selecting, ... &lt;EM&gt;&lt;STRONG&gt;see attached &lt;SPAN&gt;ERH17M-MP18_Multiple_Select.lsp&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 17:46:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13806804#M166542</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2025-09-11T17:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13811924#M166606</link>
      <description>&lt;P&gt;Thank you very much for these.&amp;nbsp;&lt;/P&gt;&lt;P&gt;They work great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a slight tweek to the 'Multiple_Picks' code as it was giving both multi select objects and multi pick point hatching (please see attached).&lt;/P&gt;&lt;P&gt;Though I love that option in the 'Multiple_Select' code. Very handy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your great work.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 02:31:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13811924#M166606</guid>
      <dc:creator>BigBoyCAD</dc:creator>
      <dc:date>2025-09-16T02:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13812005#M166609</link>
      <description>&lt;P&gt;Thank you for your suggestion&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I was able to change the background colour through LISP if designating a colour, it still wouldn't work when trying to set it to 'None' or 'NONE'.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2025 04:10:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13812005#M166609</guid>
      <dc:creator>BigBoyCAD</dc:creator>
      <dc:date>2025-09-16T04:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13813505#M166642</link>
      <description>&lt;P&gt;Did a bit more digging this seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setpropertyvalue (car (entsel)) "HatchBackgroundColor" "NONE")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Sep 2025 00:58:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13813505#M166642</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-09-17T00:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD LT AutoLISP - Hatch LISP routine colour issues</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13813945#M166652</link>
      <description>&lt;P&gt;Setting HatchBackgroundColor has never been the actual issue. It was the following line...&amp;nbsp;&lt;SPAN&gt;"_PickPoints"&lt;/SPAN&gt;&amp;nbsp;that broke the flow of the command. By removing that one, it works as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 06:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autocad-lt-autolisp-hatch-lisp-routine-colour-issues/m-p/13813945#M166652</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2025-09-17T06:36:19Z</dc:date>
    </item>
  </channel>
</rss>

