TsgDXFConverter.Iterate

TsgDXFConverter

  Classes Reference > CAD Database structure > TsgDXFConverter > TsgDXFConverter Methods >

TsgDXFConverter.Iterate

TsgDXFConverter

Previous pageReturn to chapter overviewNext page

Calls the Proc procedure for each existing entity.

procedure Iterate(Proc, FinishProc: TsgCADEntityProc; var Params: TsgCADIterate);

Description

Calls the Proc procedure for each existing entity, including block references (INSERTs) of any nesting level. In other words, this procedure converts DXF/DWG tree structure to a linear sequence of entities, similar to Windows metafile. It is a basis for different operations such as drawing or import of CAD files.

FinishProc has to be called after Proc function if it is not nil. By default FinishProc is nil. It serves for auxiliary needs.

Before calling Iterate necessary to set Params.Matrix field; it is initial  value of coordinate transformation matrix. This matrix is automatically  changed on enter to block reference and restored on exit from it. Params.Additional is user-defined; all other fields of Params are initialized by Iterate.

As rule, Params records is a part of object having Proc as its own method.

Important: this property has been left for compatibility with previous versions of the library. We recommend to use the following way instead of it:

Converter.Layouts[I].Iterate (I=0..Converter.LayoutsCount-1)

Go to CAD VCL Enterprise