Hide Table of Contents


Use the -EditHatch command to modify an existing Hatch or color fill.

You can modify hatch patterns, solid color fills, or gradient color fills. You can then add additional entities to the set of entities to be hatched or filled.

It is the command window variant of the EditHatch command.

To edit a hatch pattern or color fill:

  1. Type -EditHatch at the command prompt.
  2. In the graphics area, specify an existing hatch.
  3. Specify one of the following options:
    • Annotative: Specifies whether annotative scaling is applied when you create or edit the hatch. When you change the scale of Viewports on Layout Sheets, hatch entities automatically maintain the hatch size. This property ensures similar pattern sizes in Viewports on layout Sheets. See To create annotative hatch.
    • Create boundary: Lets you draw the boundaries in the same way as drawing a polyline. You can specify whether the hatch pattern updates automatically if the boundary of the hatch changes. See To draw boundaries for hatch patterns.
    • Deselect boundary: Removes selected entities from the boundary definition. If you have already selected boundaries to hatch, you can remove them from selection. To select other boundaries, use Add boundaries.
    • Rebuild the boundary: Lets you create a boundary around an unlinked hatch. You can specify that the new boundary is linked with the hatch.
    • Hatch per boundary: Generates distinct hatches with the same properties if you are adding boundaries of several areas at once. Do not enable this option if one connected hatch is required. See Setting Additional options for Hatch Boundary Detection.
    • Internal region: Lets you specify the method used to hatch entities within the boundary. See Setting Additional options for Hatch Boundary Detection.

      Select one of the following options:

      • Out: Creates hatch patterns only in the outermost areas.
      • In/Out: Creates hatch pattern between alternate areas, starting with the outermost area (default).
      • Ignore: Ignores the internal structure and hatches the entire area. Hatch lines pass through text, block attributes, and 2D solids.
      • The following diagram illustrates the In/Out, Out, and Ignore styles.

    • Pattern: Lets you select a Predefined, User-defined or Solid hatch pattern. A solid hatch fills the bounded area with the current color. See Setting a Hatch Pattern.
    • Pattern start: Lets you specify the hatch pattern start point. See To set the hatch pattern start point.
    • Placement: Lets you define the hatch placement in relation to their boundaries. See To define the placement.
    • Unrelate: Removes the link between the hatch and the boundary. See To remove the link between the hatch and the boundary.

        Note: Once the link removed, it cannot be reestablished. You must create the hatch again to restore the link.

    • Transparency: Lets you control the hatch transparency to better view the entities beneath the hatch. This option is useful especially for solid fills. See To specify transparency level.

To remove the link between the hatch and the boundary:

  1. Type -EditHatch at the command prompt.
  2. In the graphics area, specify an existing hatch.
  3. Specify the Unrelate option.


Command: -EditHatch

Related Topics

Editing Hatches and Fills

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   Command -EditHatch
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: 2023 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.