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

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

Definition

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

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.
specialGerberOptions  GerberImportParameter
Ignore Parameter contains all Image Options for gerber import.
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
ImproveAreaFills  Boolean  (Optional)
Option to remove double lines for hole connections.
tryAutoCorrectExcellonOffset  Boolean  (Optional)
Try to correct the offset for Excellon files
putAllSRObjectsInSpecialSymbol  Boolean  (Optional)
Merge all parts of the single PCB into one pad
mirrorInputData  Boolean  (Optional)
 

Return Value

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

See Also