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; only entities with normal (0,0,1) are flattened.

Return Value

Type: Int32
The number of entities that were flattened.
Remarks
- In-place update: Line, Point, Circle, Ellipse, Text (Z set to 0). - Replacement: Polyline (recreated from 2D vertices), Arc (from 2D start/mid/end), Spline (converted to a 2D polyline). - Preserves color and layer; original replaced entities are removed from the document.
See Also