LayerExtensionsTryAddPad Method

Try to add pad on the IODBLayer.

Definition

Namespace: PCBI_API_Extensions.Extensions
Assembly: PCBI.API_Library (in PCBI.API_Library.dll) Version: 17.0.0.0 (17.0.0.0)
C#
public static IODBObject TryAddPad(
	this ILayer layer,
	IPCBIWindow pcbiWindow,
	PointD center,
	float padValue1,
	float padValue2,
	PadTypes padTypes,
	bool round,
	string netName = ""
)

Parameters

layer  ILayer
The layer to add the new pad
pcbiWindow  IPCBIWindow
Parent window
center  PointD
Center location of the new pad
padValue1  Single
Size value 1 depending on the shpae
padValue2  Single
Size value 2 depending on the shpae
padTypes  PadTypes
Shape of the pad
round  Boolean
Round the shape if it is a rectangle
netName  String  (Optional)
If a net name should be added use this parameter

Return Value

IODBObject
The new pad or null

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILayer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also