IStepAddGerberLayer(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.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public 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
)
Public Function AddGerberLayer (
FullPath As String,
OverwriteIfExists As Boolean,
Type As FormatTypes,
specialGerberOptions As GerberImportParameter,
Optional LeadingNumbers As Integer = 0,
Optional TrailingNumbers As Integer = 0,
Optional unitInch As Boolean? = Nothing,
Optional TryAutoRecognition As Boolean = true,
Optional AddUndo As Boolean = false,
Optional LeadingOrTrailingZeros As omit_zeros_t = omit_zeros_t.EXPLICIT,
Optional ImproveAreaFills As Boolean = true,
Optional tryAutoCorrectExcellonOffset As Boolean = false,
Optional putAllSRObjectsInSpecialSymbol As Boolean = true,
Optional mirrorInputData As Boolean = false
) As String
public:
virtual String^ AddGerberLayer(
String^ FullPath,
bool OverwriteIfExists,
FormatTypes Type,
GerberImportParameter specialGerberOptions,
int LeadingNumbers = 0,
int TrailingNumbers = 0,
Nullable<bool> unitInch = nullptr,
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
) sealed
abstract AddGerberLayer :
FullPath : string *
OverwriteIfExists : bool *
Type : FormatTypes *
specialGerberOptions : GerberImportParameter *
?LeadingNumbers : int *
?TrailingNumbers : int *
?unitInch : Nullable<bool> *
?TryAutoRecognition : bool *
?AddUndo : bool *
?LeadingOrTrailingZeros : omit_zeros_t *
?ImproveAreaFills : bool *
?tryAutoCorrectExcellonOffset : bool *
?putAllSRObjectsInSpecialSymbol : bool *
?mirrorInputData : bool
(* Defaults:
let _LeadingNumbers = defaultArg LeadingNumbers 0
let _TrailingNumbers = defaultArg TrailingNumbers 0
let _unitInch = defaultArg unitInch null
let _TryAutoRecognition = defaultArg TryAutoRecognition true
let _AddUndo = defaultArg AddUndo false
let _LeadingOrTrailingZeros = defaultArg LeadingOrTrailingZeros omit_zeros_t.EXPLICIT
let _ImproveAreaFills = defaultArg ImproveAreaFills true
let _tryAutoCorrectExcellonOffset = defaultArg tryAutoCorrectExcellonOffset false
let _putAllSRObjectsInSpecialSymbol = defaultArg putAllSRObjectsInSpecialSymbol true
let _mirrorInputData = defaultArg mirrorInputData false
*)
-> string
override AddGerberLayer :
FullPath : string *
OverwriteIfExists : bool *
Type : FormatTypes *
specialGerberOptions : GerberImportParameter *
?LeadingNumbers : int *
?TrailingNumbers : int *
?unitInch : Nullable<bool> *
?TryAutoRecognition : bool *
?AddUndo : bool *
?LeadingOrTrailingZeros : omit_zeros_t *
?ImproveAreaFills : bool *
?tryAutoCorrectExcellonOffset : bool *
?putAllSRObjectsInSpecialSymbol : bool *
?mirrorInputData : bool
(* Defaults:
let _LeadingNumbers = defaultArg LeadingNumbers 0
let _TrailingNumbers = defaultArg TrailingNumbers 0
let _unitInch = defaultArg unitInch null
let _TryAutoRecognition = defaultArg TryAutoRecognition true
let _AddUndo = defaultArg AddUndo false
let _LeadingOrTrailingZeros = defaultArg LeadingOrTrailingZeros omit_zeros_t.EXPLICIT
let _ImproveAreaFills = defaultArg ImproveAreaFills true
let _tryAutoCorrectExcellonOffset = defaultArg tryAutoCorrectExcellonOffset false
let _putAllSRObjectsInSpecialSymbol = defaultArg putAllSRObjectsInSpecialSymbol true
let _mirrorInputData = defaultArg mirrorInputData false
*)
-> string
- 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)
- In some data the informatin mirrored, to fit them to the other layers you have to mirror them.
StringReturns name of the layer or an empty if an error occurred.
InterfaceStepAddGerberLayer(String, Boolean, FormatTypes, GerberImportParameter, Int32, Int32, NullableBoolean, Boolean, Boolean, omit_zeros_t, Boolean, Boolean, Boolean, Boolean)