AutoCAD - Tool Palettes - Hatch Command

AutoCAD - Tool Palettes - Hatch Command

oiverson
Advocate Advocate
1,247 Views
5 Replies
Message 1 of 6

AutoCAD - Tool Palettes - Hatch Command

oiverson
Advocate
Advocate

I want a tool that when clicked, is going to hatch something with a preset hatch pattern, layer, color, and the selection method is Select Object with Pick Points as an option.

 

For the life of me I can't get that. I have everything I want currently, but it defaults to ONLY pick points with no option to select.

 

If I use the Hatch command as the tool, I don't get any options for the pattern - it just uses the current pattern (the last one used).

 

I could create my own command, (which I've done before) just curious if I'm missing something obvious.

 

HATCH Command that defaults to Select Object but offers Pick Points on the command line:

oiverson_0-1668792264189.png

 

Or my Hatch tool that I can set everything, but it ONLY looks to Pick Point (no option to Select Object)

oiverson_1-1668792410853.png

 

[ The subject line of this post has been edited for clarity by @handjonathan Original: Tool Palettes - Hatch Command ]

 

 

0 Likes
1,248 Views
5 Replies
Replies (5)
Message 2 of 6

imadHabash
Mentor
Mentor

Hi,

In normal and plane AutoCAD .. ADDSELECTED (Command)” is an often over looked tool that can save you time .

 

Imad Habash

EESignature

0 Likes
Message 3 of 6

pendean
Community Legend
Community Legend

Greetings @oiverson
You forgot to use all the tools available for your personal custom macro in first screenshot:
HPNAME system Variable before you launch that hatch command.

 

^C^C_HPNAME;SOLID;_HATCH

Explore all the other HP* variables in HELP to make that macro do way more if you so choose:
HPANG
HPANNOTATIVE
HPASSOC
HPBACKGROUNDCOLOR
HPBOUND
HPBOUNDRETAIN
HPCOLOR
HPDLGMODE
HPDOUBLE
HPDRAWORDER
HPGAPTOL
HPINHERIT
HPISLANDDETECTION
HPISLANDDETECTIONMODE
HPLAYER
HPLINETYPE
HPMAXAREAS
HPMAXLINES
HPNAME
HPOBJWARNING
HPORIGIN
HPORIGINMODE
HPPICKMODE
HPQUICKPREVIEW
HPQUICKPREVTIMEOUT
HPSCALE
HPSEPARATE
HPSPACE
HPTRANSPARENCY

Message 4 of 6

ВeekeeCZ
Consultant
Consultant

I think you got it covered all right. You can't change the hatch tool, you can't assign a pattern to the command macro... well you can but it's just a menu macro with all its limitations... so if you know how, make your own LISP command. At least that's what I would do.

Message 5 of 6

oiverson
Advocate
Advocate

yeah, we used to have everything in LISP and this was exactly what we would do.

 

Now we've moved almost all code over to .NET so now I have to get the programmer involved.

 

Was just seeing if I was missing any AutoCAD basics surrounding the Tool Palettes.

0 Likes
Message 6 of 6

ВeekeeCZ
Consultant
Consultant

Or you can use a little lisp as a macro to get the best from both worlds. Set the common properties by a tool options, your 1st img.

 

^C^C^Q((lambda ( / p) (setq p (getvar 'hpname)) (setvar 'hpname "SOLID") (initcommandversion) (command-s "_.hatch") (setvar 'hpname p)))

 

Edit: removed "_s" from a lisp.

0 Likes