LayerExtensionsTryAddSurface Method
Try to add an surface on the IODBLayer, outline is defined by a point list.
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 TryAddSurface(
this ILayer layer,
IPCBIWindow pcbiWindow,
List<PointD> points,
string netName = "",
bool positive = true
)
<ExtensionAttribute>
Public Shared Function TryAddSurface (
layer As ILayer,
pcbiWindow As IPCBIWindow,
points As List(Of PointD),
Optional netName As String = "",
Optional positive As Boolean = true
) As IODBObject
public:
[ExtensionAttribute]
static IODBObject^ TryAddSurface(
ILayer^ layer,
IPCBIWindow^ pcbiWindow,
List<PointD>^ points,
String^ netName = L"",
bool positive = true
)
[<ExtensionAttribute>]
static member TryAddSurface :
layer : ILayer *
pcbiWindow : IPCBIWindow *
points : List<PointD> *
?netName : string *
?positive : bool
(* Defaults:
let _netName = defaultArg netName ""
let _positive = defaultArg positive true
*)
-> IODBObject
- layer ILayer
- Layer to add surface
- pcbiWindow IPCBIWindow
-
- points ListPointD
- List of outline points for the surface
- netName String (Optional)
- Name of the net or empty if no net should be added
- positive Boolean (Optional)
- Object should be postive
IODBObjectThe new surface objectIn 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).