IStepAddGerberLayer(String, Boolean, FormatTypes, Int32, Int32, NullableBoolean, Boolean, Boolean, omit_zeros_t) Method

Reads Gerber or Excellon data, errors are reported in the ErrorLog.

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public string AddGerberLayer(
	string FullPath,
	bool OverwriteIfExists,
	FormatTypes Type,
	int LeadingNumbers = 0,
	int TrailingNumbers = 0,
	bool? unitInch = null,
	bool TryAutoRecognition = true,
	bool AddUndo = false,
	omit_zeros_t LeadingOrTrailingZeros = omit_zeros_t.EXPLICIT
)

Parameters

FullPath  String
The filename with full path.
OverwriteIfExists  Boolean
If true overriedes existing layer, if false change the name of the layer.
Type  FormatTypes
The type of file.
LeadingNumbers  Int32  (Optional)
Leading number count e.g. 3 or 0 if PCB-Investigator should check for it.
TrailingNumbers  Int32  (Optional)
Trailing number count e.g. 5 or 0 if PCB-Investigator should check for it.
unitInch  NullableBoolean  (Optional)
inch or mm or unknown
TryAutoRecognition  Boolean  (Optional)
For Excellon1/2 the size of file will be adjusted on the other layers of this step.
AddUndo  Boolean  (Optional)
Add to undo list to remove layer by calling undo.
LeadingOrTrailingZeros  omit_zeros_t  (Optional)
LEADING, TRAILING or EXPLICIT

Return Value

String
Returns name of the layer or an empty if an error occurred.

Implements

InterfaceStepAddGerberLayer(String, Boolean, FormatTypes, Int32, Int32, NullableBoolean, Boolean, Boolean, omit_zeros_t)

See Also