www.kxcad.net Home > Electronic Index > Altium(Protel) Index
Overview
Iterates through a library to fetch PCB footprints and its primitives.
Important Notes
IPCB_LibraryIterator has only methods inherited from the IPCB_AbstractIterator interface and is reproduced here for reference.
DelphiScript doesnt support sets, therefore to pass in a set of layers or a set of objects, you need to use the MkSet function to create a pseudo set of objects or layers for the AddFilter_ObjectSet or AddFilterLayerSet procedures. For example LibraryIterator.AddFilter_ObjectSet(MkSet(eTrackObject,eFillObject));
IPCB_LibraryIterator Methods
Function I_ObjectAddress : TPCBObjectHandle;
Function FirstPCBObject : IPCB_Primitive;
Function NextPCBObject : IPCB_Primitive
Procedure SetState_FilterAll;
Procedure AddFilter_ObjectSet (AObjectSet : TObjectSet);
Procedure AddFilter_LayerSet (ALayerSet : TLayerSet);
Procedure AddFilter_Area (X1,
Y1,
X2,
Y2 : TCoord);
Procedure AddFilter_AllLayers;
See also
IPCB_BoardIterator interface
IPCB_LibraryIterator interface
IPCB_SpatialIterator interface
IPCB_Primitive interface
TObjectId enumerated values
TLayer enumerated values
MkSet function