Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

ca0b17a1 446f e49a e962 3c349c03f74d

haplokuon edited this page May 6, 2023 · 1 revision

Hatch(HatchPattern, Boolean) Constructor

netDxf 3.0.0 Library

Initializes a new instance of the Hatch class.

Definition

Namespace: netDxf.Entities
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public Hatch(
	HatchPattern pattern,
	bool associative
)

VB

Public Sub New ( 
	pattern As HatchPattern,
	associative As Boolean
)

C++

public:
Hatch(
	HatchPattern^ pattern, 
	bool associative
)

F#

new : 
        pattern : HatchPattern * 
        associative : bool -> Hatch

Parameters

  HatchPattern
Hatch pattern.
  Boolean
Defines if the hatch is associative or not.

Remarks

This constructor is initialized with an empty list of boundary paths, remember a hatch without boundaries will be discarded when saving the file.
When creating an associative hatch do not add the entities that make the boundary to the document, it will be done automatically. Doing so will throw an exception.
The hatch boundary paths must be on the same plane as the hatch. The normal and the elevation of the boundary paths will be omitted (the hatch elevation and normal will be used instead). Only the x and y coordinates for the center of the line, ellipse, circle and arc will be used.

See Also

Reference

Hatch Class
Hatch Overload
netDxf.Entities Namespace

Clone this wiki locally