ExportGerber (Layout Editor)
Use: Export the current design to Gerber files.
Command: File > Export > Gerber
Syntax: ExportGerber
Array("NAME:options",
"FileName:=", <"file name">,
"Units:=", <"units">,
"IntPlace:=", <integer places>,
"DecimalPlace:=", <decimal places>,
"Suppress:=", <"suppress">,
Array("NAME:GerberPages",
"<page>:=", Array(<"layer">, …), …))
Return Value: None
Parameters: <"file name">
Type: text
Description: prefix for the exported Gerber files; the actual files will be named <file name>_<page>.ger
<"units">
Type: text
Description: unit code, e.g. "in", "mm", etc.
<integer places>
Type: integer
Description: number of integer places to use when formatting the numerical output.
<decimal places>
Type: integer
Description: number of decimal places to use when formatting the numerical output.
<"suppress">
Type: text
Description: either "Leading Zeros", or "Trailing Zeros".
<page>
Type: integer
Description: Gerber page number
<"layer">
Type: text
Description: Layers to be exported to the specified Gerber page.
Example:
Set oDesign = oProject.SetActiveDesign("HFSS3D1")
Set oEditor = oDesign.SetActiveEditor("Layout")
oEditor.ExportGerber
Array("NAME:options",
"FileName:=", "C:/ Projects/design.ger",
"Units:=", "in",
"IntPlace:=", 5,
"DecimalPlace:=", 5,
"Suppress:=", "Leading Zeros",
Array("NAME:GerberPages", "1:=", Array("Ground"), "2:=", Array("Top") ))