CadHatchPattern
from OpenCAD2D import CadHatchPattern
class CadHatchPattern(System.Object) ยท CadHatchPattern in the .NET reference
A hatch pattern of a .pat file: its name, its description and its lines.
Constructors
__init__
def __init__(
self,
name: str,
description: str,
lines: System.Collections.Generic.IEnumerable[CadHatchPatternLine],
) -> None
Makes a pattern.
Properties and fields
Description
@property
def Description(self) -> str
Gets the description.
Lines
@property
def Lines(self) -> System.Collections.Generic.IReadOnlyList[CadHatchPatternLine]
Gets the lines.
Name
@property
def Name(self) -> str
Gets the name.
Methods
Place
def Place(
self,
angle: float,
scale: float,
originX: float,
originY: float,
) -> System.Collections.Generic.IReadOnlyList[DxfPatternDefinition]
Gets the lines placed as a HATCH holds them, as AutoCAD 2021 places those of its file: each line's angle turned by the angle, its base point scaled and turned about the origin and moved by the origin given, its step turned into the plane by its own angle and scaled, its dashes scaled. ANSI31 at angle nought and scale 1 is the line at 45 degrees through (0, 0), offset (-2.245, 2.245); at 30 degrees and scale 2, at 75 degrees, offset (-6.134, 1.644).