Method Walk
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Walk(CadDocument, string)
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 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 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.
public static CadFlatDrawing Walk(CadDocument document, string layout)
Parameters
documentCadDocumentThe drawing.
layoutstringThe name of the layout to walk (
Modelfor model space), compared in capitals; null for model space and every layout, in the order of the drawing.
Returns
- CadFlatDrawing
The entities, the layouts and what was left alone.
Exceptions
- ArgumentNullException
Thrown when the drawing is null.
- ArgumentException
Thrown when the drawing has no layout of that name.