LayerExtensionsTryAddPad Method
Try to add pad on the IODBLayer.
Namespace: PCBI_API_Extensions.ExtensionsAssembly: PCBI.API_Library (in PCBI.API_Library.dll) Version: 17.0.0.0 (17.0.0.0)
public static IODBObject TryAddPad(
this ILayer layer,
IPCBIWindow pcbiWindow,
PointD center,
float padValue1,
float padValue2,
PadTypes padTypes,
bool round,
string netName = ""
)
<ExtensionAttribute>
Public Shared Function TryAddPad (
layer As ILayer,
pcbiWindow As IPCBIWindow,
center As PointD,
padValue1 As Single,
padValue2 As Single,
padTypes As PadTypes,
round As Boolean,
Optional netName As String = ""
) As IODBObject
public:
[ExtensionAttribute]
static IODBObject^ TryAddPad(
ILayer^ layer,
IPCBIWindow^ pcbiWindow,
PointD center,
float padValue1,
float padValue2,
PadTypes padTypes,
bool round,
String^ netName = L""
)
[<ExtensionAttribute>]
static member TryAddPad :
layer : ILayer *
pcbiWindow : IPCBIWindow *
center : PointD *
padValue1 : float32 *
padValue2 : float32 *
padTypes : PadTypes *
round : bool *
?netName : string
(* Defaults:
let _netName = defaultArg netName ""
*)
-> IODBObject
- 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
IODBObjectThe new pad or nullIn 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).