Table of Contents

CadFlatten

from OpenCAD2D import CadFlatten

class CadFlatten(System.Object) ยท CadFlatten in the .NET reference

Walks the block references of a drawing, nested ones and arrays of them included, to the entities they are drawn as, each in world coordinates with the path of blocks it came out of and the transformation that placed it, the drawing left as it is. It is what EXPLODE and BURST do, repeated down the nest and kept apart from the drawing.

Methods

Walk

.NET

@staticmethod
def Walk(document: CadDocument, layout: str) -> CadFlatDrawing

Walks the spaces of a drawing. The entities come in the order of their handles, hexadecimal numbers taken as numbers (handle 9 before 1A), the pieces of one block reference after each other in the order of CadFlatEntity.IndexPath; the drawing is not changed and no entity of it is. A walk places no more than 2 000 000 entities through block references; each reference it refuses stays as one INSERT and is named in CadFlatReport.Refused, as one nested more than 64 deep is, so that blocks nested a few deep with many references each (40 references in each of four levels is 102 million lines) cannot fill the memory.