-HATCH — Hatch (command line)
Hatches from the command line, without a dialog.
- Command:
-HATCH· Global name:_-HATCH· Alias:-H
Hatches from the command line, with the steps and options of HATCH but without opening the dialog, with the AutoCAD -HATCH prompts. The suboptions (Properties, Origin, Color, Annotative…) are those of -HATCHEDIT.
Usage
- Pick an internal point in each area or choose Select objects and select the boundaries. Enter creates the hatch. After each option the main prompt comes back, with "Current hatch pattern".
Specify internal point or [Properties/Select objects/Advanced/DRaw order/Origin/ANnotative/hatch COlor/LAyer/TRansparency]: Select objects:
Options
- Properties: the pattern and then the scale and angle; Solid, User defined (angle, spacing and crosshatch) or Gradient (name, angle and centered; with One color, the color and the shade or tint; with Two color, both colors).
?lists the patterns whose name matches what is typed (*, all).
Enter a pattern name or [?/Solid/User defined/Gradient] <…>: Specify a scale for the pattern <…>: Specify an angle for the pattern <…>: Enter a gradient name or [?/One color/Two color] <…>:
- Select objects and Internal point: select boundaries or go back to internal points.
- Advanced: asked again until Enter. Boundary set (New selects the objects used to find the boundary; Everything goes back to all visible objects), Retain boundary (also creates the boundary as a polyline, HPBOUNDRETAIN), Island detection (with No, the ray casting), Style, Associativity (HPASSOC), Gap tolerance (HPGAPTOL) and separate Hatches.
Enter an option [Boundary set/Retain boundary/Island detection/Style/Associativity/Gap tolerance/separate Hatches]:
- dRaw order: as in HATCH.
- Origin: the current origin, a new one, or a corner or the center of the hatch extents; with Yes, it becomes the default origin of the next hatches.
[Use current origin/Set new origin/Default to boundary extents] <Use current origin>: [bottom Left/bottom Right/top rIght/Top left/Center] <bottom Left>:
- ANnotative: Yes or No to create an annotative hatch.
Create annotative hatch [Yes/No] <…>:
- COlor: asks for the hatch color (HPCOLOR) and then the background color (HPBACKGROUNDCOLOR): a color index, a standard name, R,G,B (or Truecolor and R,G,B), ByLayer or ByBlock (color only);
.goes back to the current color or leaves the hatch without background. Enter keeps the value.
New color [Truecolor/COlorbook/. (for current)] <…>: New background color [Truecolor/COlorbook/. (for none)] <…>:
- LAyer: the name of an existing layer;
.goes back to the current layer.
Specify layer name or [. (to use current)] <use current>:
- TRansparency: 0 to 90;
.goes back to the current transparency.
Specify transparency value (0-90) or [. (to use current)] <use current>:
Notes
- It is the same command as SOMBREA in scripts, SCRIPT, AutoLISP and the API, where the dialog never opens.
- The Pattern, Scale, Angle, Gradient and Inherit options of SOMBREA are also accepted when typed.
- LinceCAD has no color books: COlorbook asks for the book and reports that it is not found. The ray casting direction is accepted, but the boundary found is always the nearest one.
See also
HATCH · HATCHEDIT · -HATCHEDIT