IODBLayer Methods

Methods

AddObject(InterfaceObjectSpecificsD) Adds a object to this layer. Attention: The shape indices of lines, arcs and pads are taken from the symbol table of this layer. To ensure the right symbol you may have to create the symbol on this layer and update the shape index first.
AddObject(IObjectSpecificsD) Adds a object to this layer. Attention: The shape indices of lines, arcs and pads are taken from the symbol table of this layer. To ensure the right symbol you may have to create the symbol on this layer and update the shape index first.
AddObjects(ListInterfaceObjectSpecificsD, Boolean) Adds a list of objects to this layer. Attention: The shape indices of lines, arcs and pads are taken from the symbol table of this layer. To ensure the right symbol you may have to create the symbol on this layer and update the shape index first.
AddObjects(ListIObjectSpecificsD, Boolean) Adds a list of objects to this layer. Attention: The shape indices of lines, arcs and pads are taken from the symbol table of this layer. To ensure the right symbol you may have to create the symbol on this layer and update the shape index first.
AOIHighResolutionBMPExport(String, RectangleF, Boolean, Int32) Works only with extra licence! Creates a high resolution Bitmap from the clipping Rectangle and save it.
AOIHighResolutionBMPExport(String, Size, RectangleF, Boolean) Works only with extra licence! Creates a high resolution Bitmap from the clipping Rectangle and save it. It expand the area if the aspect ratio have other
AOIHighResolutionBMPExport(String, RectangleF, Boolean, Int32, Boolean) Works only with extra licence! Creates a high resolution Bitmap from the clipping Rectangle and save it.
CalculateArea Calculate the area of this layer.
CalculateLayerBounds Check all objects on the layer and calculates the bounds new.
(Overrides ILayerCalculateLayerBounds)
CopyLayerContent Copy all elements from one layer to the other layer. New objects do not contain to any net, but have attributes from original layer.
CreateLayerNetList Creates the net numbers of this layer with a reset first. The result is written in LayerNetNumber of each IODBObject of this layer.
DisableLayer Make the layer invisible and remove it from the working list
(Overrides ILayerDisableLayer)
EnableLayer Make the layer visible.
(Overrides ILayerEnableLayer(Boolean))
Equals Determines whether two objects are equal.
(Overrides ObjectEquals(Object))
EqualsNull Compare the object with null.
FlattenSpecialPads Flattens Pads of Special Symbol Shapes
FloodLayer(InterfacePCBIWindow, Double, Double, Double, Double, Double) Flood layer with surfaces, this use pcb outline for edge.
FloodLayer(IPCBIWindow, Double, Double, Double, Double, Double) Flood layer with surfaces, this use pcb outline for edge.
GetAllLayerObjects Gets all objects on this layer.
(Overrides ILayerGetAllLayerObjects)
GetAllObjectInRectangle(RectangleD) Returns all objects in the specified rectangle Area.
(Overrides ILayerGetAllObjectInRectangle(RectangleD))
GetAllObjectInRectangle(RectangleF) Returns all objects in the specified rectangle Area.
(Overrides ILayerGetAllObjectInRectangle(RectangleF))
GetAllObjectsOnPosition(PointD) Returns all objects on the point (including step and repeat).
(Overrides ILayerGetAllObjectsOnPosition(PointD))
GetAllObjectsOnPosition(PointF) Returns all objects on the point (including step and repeat).
(Overrides ILayerGetAllObjectsOnPosition(PointF))
GetAllObjectsOnPositionInCurrentStep Returns all objects on the point (only in current step).
(Overrides ILayerGetAllObjectsOnPositionInCurrentStep(PointD))
GetBitmap 
GetBounds Gets the rectangle size which encloses the layer.
(Overrides ILayerGetBounds)
GetBoundsD Gets the rectangle size which encloses the layer in double values.
(Overrides ILayerGetBoundsD)
GetDrillTools Load drill tools for this layer, if it is no drill layer it returns an empty list.
GetElementCount Gets count of Elements on this layer
(Overrides ILayerGetElementCount)
GetHashCode Override the hashcode to compare more instances from one Element.
(Overrides ObjectGetHashCode)
GetLayerName Gets the layer name.
(Overrides ILayerGetLayerName)
GetNetNames key = int, value = string
GetNetNumber Returns the local net number from a netname.
GetNotesOnLayer Get all notes on this layer. NoteElements contain the text and location of the notes.
(Overrides ILayerGetNotesOnLayer)
GetOutlineFromShapeIndex Creates a list oj IODBObject to reproduce the outline of an tool.
GetOverlayColor Returns the Overlay color at a certain position
(Overrides ILayerGetOverlayColor(Double, Double))
GetOverlayPixelValue Returns the value and description of the overlay at a certain world coordinate
(Overrides ILayerGetOverlayPixelValue(Double, Double, Double, String, String))
GetPolygonizeLayerObjects Create polygonized objects for all layerobjects
GetPolygonOutlineFromShapeIndex Create IPolyClass outline form shape index.
GetShapeIndexFromSymbolName Check Symbol exists and search for the index, if no symbol found it returns -1.
GetSpecialSymbolElements Check the shape index, if it is a special symbol all elements are returned.
GetSymbolNameFromShapeIndex Returns the ODBString for the ShapeIndex or Empty String
GetSymbolStringFromShapeIndex Returns the ODBString for the ShapeIndex or Empty String
GetTextLines(InterfaceODBObject) Create a list of Lines in structure of the Text. E.G. a X contains two lines, one from left down to right up and one from left up to right down. Attention: The Text is not added to the layer, you have to SetSpecifics() of each line to add them to this layer!
GetTextLines(IODBObject) Create a list of Lines in structure of the Text. E.G. a X contains two lines, one from left down to right up and one from left up to right down. Attention: The Text is not added to the layer, you have to SetSpecifics() of each line to add them to this layer!
GetTextLines(String, RectangleD) Create a list of Lines in structure of the Text. E.G. a X contains two lines, one from left down to right up and one from left up to right down. Attention: The Text is not added to the layer, you have to SetSpecifics() of each line to add them to this layer!
HasOverlay Returns true if layer has an image overlay
(Overrides ILayerHasOverlay)
HatchObject(InterfacePolyClass, PatternHatch, Double, Double, Boolean) Hatch a object with the special pattern.
HatchObject(IPolyClass, PatternHatch, Double, Double, Boolean) Hatch a object with the special pattern.
MirrorX Mirrors the layer in X-direction (Mirror on the Y-Axis).
(Overrides ILayerMirrorX)
MirrorY Mirrors the layer in Y-direction.
(Overrides ILayerMirrorY)
MoveLayer(PointD) Move the layer to the postition.
(Overrides ILayerMoveLayer(PointD))
MoveLayer(PointF) Move the layer to the postition.
(Overrides ILayerMoveLayer(PointF))
Oversize Oversize or undersize the layer, with option for only selected and values in percentage.
PolygonizeCuttedObjectsOnLayer Removes negative objects on the layer by polygonizing cutted objects, so that the result looks same, but without negatives objects.
PolygonizeLayer All layer objects will be checked for overlapping, than they are conected to new objects. You get many new surfaces if there are overlapping of objects on the layer.
PolygonizeLayer(Double) All layer objects will be checked for overlapping, than they are conected to new objects. You get many new surfaces if there are overlapping of objects on the layer.
PolygonizeLayer(Double, Boolean) All layer objects will be chacked for overlapping, than they are conected to new objects. You get many new surfaces if there are overlapping of objects on the layer. This removes all other elements from the layer!
PolygonizeNets Polygonizes all overlapping Objects to one polygon. The 'Tag' is the first IODBObject of the chain.
RemoveAllObjects Removes all objects on this layer (no Undo)
RemoveAllObjects(Boolean) Removes all objects on this layer (no Undo)
RemoveDoubleElements Remove double elements on current layer.
RemoveObject(InterfaceODBObject, Boolean, Boolean) Remove one InterfaceODBObject from the layer and delete the included data.
RemoveObject(IODBObject, Boolean, Boolean) Remove one IODBObject from the layer and delete the included data.
RemoveObjects(ListInterfaceODBObject) Removes a list of objects (no Undo)
RemoveObjects(ListIODBObject) Removes a list of objects (no Undo)
RemoveObjects(ListInterfaceODBObject, Boolean) Removes a list of objects (no Undo)
RemoveObjects(ListIODBObject, Boolean) Removes a list of objects (no Undo)
ResetFreeText Reset all free texts on this layer.
ResetNetNumbers Reset the generated net numbers. This is only for layer net numbers who are calculated by PCB-Investigator. Net numbers from the data are saved in PCB-NetNumbers and never modified.
RotateLayer(Boolean) Rotate the layer 90° clockwise or counter-clockwise.
(Overrides ILayerRotateLayer(Boolean))
RotateLayer(Double) Rotate the layer by the specified angle (degree).
SaveLayerAsCatia saves the layer as catia script
(Inherited from ILayer)
SaveLayerAsDXF(String) [Obsolete] Saves the layer as dxf file.
(Overrides ILayerSaveLayerAsDXF(String))
SaveLayerAsDXF(String, Boolean, Boolean, Double, Boolean, Boolean) [Obsolete] Saves the layer as dxf file.
SaveLayerAsGerber(String, Int32, Int32, Boolean, Boolean) Save all layerobjects as gerberfile to the fullPath location.
SaveLayerAsGerber(String, Int32, Int32, Boolean, Boolean, Boolean, SpecialSymbolGerberExportEnum, PanelGerberExportEnum) Save all layerobjects as gerberfile to the fullPath location.
SaveLayerAsGerber(String, Int32, Int32, Boolean, Boolean, Boolean, SpecialSymbolGerberExportEnum, PanelGerberExportEnum, Boolean, Boolean) Save all layerobjects as gerberfile to the fullPath location.
SaveLayerAsGerber(String, Int32, Int32, Boolean, Boolean, Boolean, SpecialSymbolGerberExportEnum, PanelGerberExportEnum, Boolean, Boolean, Boolean) Save all layerobjects as gerberfile to the fullPath location.
ScaleLayer Scales the layer by the given factor Special Symbols will be flattened first
SetNetNumber Set the net number from a specific net.
SetOverlayAlpha Set the alpha value (transparency) for the Overlay image
(Overrides ILayerSetOverlayAlpha(Byte))
SetOverlayImage Sets an overlay image for this layer or removes the image (bmp=null)
(Overrides ILayerSetOverlayImage(Bitmap, Matrix, DictionaryInt32, DictionaryInt32, Double, String, String, Boolean))
ToString Returns name of the layer
(Inherited from ILayer)
TryCombineLinesToArcs Search for line combinations to generate arcs out of them (unflatten arcs).
UnflattenLinesToArcs(Boolean) Try to replace line combinations with arcs.
UnflattenLinesToArcs(Boolean, Double) Try to replace line combinations with arcs.

Extension Methods

See Also