<?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>tema Problem redefining hatch command en AutoCAD for Mac Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-for-mac-forum/problem-redefining-hatch-command/m-p/5924342#M18387</link>
    <description>&lt;P&gt;I have the following lines in a lisp routine which I load with Startup Suite. I want to redefine the hatch command to ensure hatch associativity is selected by default:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:hatch ()&lt;BR /&gt;(if (= (getvar “hpassoc”) 0)&lt;BR /&gt;(setvar “hpassoc” 1)&lt;BR /&gt;)&lt;BR /&gt;(command “.hatch”)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(command “undefine” “hatch”)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't seem to be working, and undefining 'HATCH' seems to break the 'h' keyboard shortcut defined in the PGP file, so that "h"&amp;nbsp;brings up HALOGAP.&lt;/P&gt;&lt;P&gt;I've tried putting the "undefine" both before and after the replacement hatch function, but it doesn't seem to make any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what I am doing wrong...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2015 12:09:23 GMT</pubDate>
    <dc:creator>KeithSWD</dc:creator>
    <dc:date>2015-11-25T12:09:23Z</dc:date>
    <item>
      <title>Problem redefining hatch command</title>
      <link>https://forums.autodesk.com/t5/autocad-for-mac-forum/problem-redefining-hatch-command/m-p/5924342#M18387</link>
      <description>&lt;P&gt;I have the following lines in a lisp routine which I load with Startup Suite. I want to redefine the hatch command to ensure hatch associativity is selected by default:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:hatch ()&lt;BR /&gt;(if (= (getvar “hpassoc”) 0)&lt;BR /&gt;(setvar “hpassoc” 1)&lt;BR /&gt;)&lt;BR /&gt;(command “.hatch”)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(command “undefine” “hatch”)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't seem to be working, and undefining 'HATCH' seems to break the 'h' keyboard shortcut defined in the PGP file, so that "h"&amp;nbsp;brings up HALOGAP.&lt;/P&gt;&lt;P&gt;I've tried putting the "undefine" both before and after the replacement hatch function, but it doesn't seem to make any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what I am doing wrong...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 12:09:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-for-mac-forum/problem-redefining-hatch-command/m-p/5924342#M18387</guid>
      <dc:creator>KeithSWD</dc:creator>
      <dc:date>2015-11-25T12:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem redefining hatch command</title>
      <link>https://forums.autodesk.com/t5/autocad-for-mac-forum/problem-redefining-hatch-command/m-p/5924394#M18388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you don't need to redefine HATCH command.&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:H ()
(if (= (getvar "hpassoc") 0)
(setvar "hpassoc" 1)
)
(initdia)
(command "._HATCH")
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added (initdia) function call in order to show Hatch Visor, without it you should work with hatch options only via command prompt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maxim&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 12:49:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-for-mac-forum/problem-redefining-hatch-command/m-p/5924394#M18388</guid>
      <dc:creator>maxim_k</dc:creator>
      <dc:date>2015-11-25T12:49:06Z</dc:date>
    </item>
  </channel>
</rss>

