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
Syntaxpublic int FlattenEntities(
IEnumerable<EntityObject> Entities
)
Public Function FlattenEntities (
Entities As IEnumerable(Of EntityObject)
) As Integer
public:
int FlattenEntities(
IEnumerable<EntityObject^>^ Entities
)
member FlattenEntities :
Entities : IEnumerable<EntityObject> -> int
METHOD FlattenEntities(
Entities AS IEnumerable<EntityObject>
) AS LONG
Parameters
- Entities
- Type: System.Collections.GenericIEnumerableEntityObject
Entities to process; only entities with normal (0,0,1) are flattened.
Return Value
Type:
Int32The 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