LayerExtensionsTryAddSurface Method

Try to add an surface on the IODBLayer, outline is defined by a point list.

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 TryAddSurface(
	this ILayer layer,
	IPCBIWindow pcbiWindow,
	List<PointD> points,
	string netName = "",
	bool positive = true
)

Parameters

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

Return Value

IODBObject
The new surface object

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