InterfaceFilterInsertElementsToLayer(Int32, InterfaceODBLayer, ListInterfaceODBObject, PointD, Boolean, Boolean, Double, Boolean) Method

Insert a list of elements in the existing element list of the ParentLayer on position IndexInLayerElementList.

Definition

Namespace: PCBI.Automation.Interfaces
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
bool InsertElementsToLayer(
	int indexInLayerElementList,
	InterfaceODBLayer parentLayer,
	List<InterfaceODBObject> insertElements,
	PointD offset,
	bool mirrorX = false,
	bool mirrorY = false,
	double rotation = 0,
	bool removeOriginalElements = true
)

Parameters

indexInLayerElementList  Int32
The new position of the list of new elements.
parentLayer  InterfaceODBLayer
On this layer the elements are added.
insertElements  ListInterfaceODBObject
Relevant elements to insert in list.
offset  PointD
All Objects moved for the Offset.
mirrorX  Boolean  (Optional)
Mirror the elements in X direction.
mirrorY  Boolean  (Optional)
Mirror the elements in Y direction.
rotation  Double  (Optional)
Rotate the elements before adding them.
removeOriginalElements  Boolean  (Optional)
If you use this method to move elements it can remove the orignial elements from origninal layer.

Return Value

Boolean
True if the objects are insert in elmeent list of parent layer.

See Also