Home > PCB_ManufactureData > getGerberFile
PCB_ManufactureData.getGerberFile() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
获取 PCB 制版文件(Gerber)
Signature
typescript
getGerberFile(fileName?: string, colorSilkscreen?: boolean, unit?: ESYS_Unit.MILLIMETER | ESYS_Unit.INCH, digitalFormat?: {
integerNumber: number;
decimalNumber: number;
}, drilledHole?: {
metallizedDrilledHoles: boolean;
nonMetallizedDrilledHoles: boolean;
drillChart: boolean;
}, layers?: Array<{
layerId: number;
mirror: boolean;
}>, objects?: Array<string>): Promise<File | undefined>;
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
Parameters
Parameter | Type | Description |
---|---|---|
fileName | string | (Optional) 文件名 |
colorSilkscreen | boolean | (Optional) 是否生成彩色丝印制造文件(嘉立创专用文件) |
unit | (Optional) 单位 | |
digitalFormat | { integerNumber: number; decimalNumber: number; } | (Optional) 数字格式 |
drilledHole | { metallizedDrilledHoles: boolean; nonMetallizedDrilledHoles: boolean; drillChart: boolean; } | (Optional) 钻孔 |
layers | Array<{ layerId: number; mirror: boolean; }> | (Optional) 导出层,默认则按照嘉立创生产需求导出 |
objects | Array<string> | (Optional) 导出对象,默认则按照嘉立创生产需求导出 |
Returns
Promise<File | undefined>
PCB 制版文件数据
Remarks
可以使用 SYS_FileSystem.saveFile() 接口将文件导出到本地文件系统