Click or drag to resize

DXFReaderNETControlFlattenEntities Method

Flattens the given entities by projecting them onto the XY plane (Z = 0) and updates/replaces them in the current drawing.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public int FlattenEntities(
	IEnumerable<EntityObject> Entities
)

Parameters

Entities
Type: System.Collections.GenericIEnumerableEntityObject
Entities to process.

Return Value

Type: Int32
The number of entities that were flattened.
Remarks
- Line and Point: always projected (WCS endpoints/position → Z = 0), Normal set to (0,0,1). Zero-length lines (e.g. former vertical edges) are removed. - Other types (Polyline, Arc, Circle, Ellipse, Text, Spline): only when Normal is (0,0,1). - In-place update: Line, Point, Circle, Ellipse, Text, Spline. - Replacement: Polyline (recreated from 2D vertices), Arc (from 2D start/mid/end). - Preserves color and layer; original replaced entities are removed from the document.
See Also