Home > PCB_ManufactureData > getOpenDatabaseDoublePlusFile
PCB_ManufactureData.getOpenDatabaseDoublePlusFile() 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.
获取 ODB++ 文件
Signature
typescript
getOpenDatabaseDoublePlusFile(fileName?: string, unit?: ESYS_Unit.INCH, otherData?: {
metallizedDrilledHoles?: boolean;
nonMetallizedDrilledHoles?: boolean;
drillTable?: boolean;
flyingProbeTestFile?: boolean;
}, layers?: Array<{
layerId: number;
mirror: boolean;
}>, objects?: Array<{
objectName: 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) 文件名 |
unit | (Optional) 单位 | |
otherData | { metallizedDrilledHoles?: boolean; nonMetallizedDrilledHoles?: boolean; drillTable?: boolean; flyingProbeTestFile?: boolean; } | (Optional) 其它 |
layers | Array<{ layerId: number; mirror: boolean; }> | (Optional) 导出层,默认则按照嘉立创生产需求导出 |
objects | Array<{ objectName: string; }> | (Optional) 导出对象,默认则按照嘉立创生产需求导出 |
Returns
Promise<File | undefined>
ODB++ 文件数据
Remarks
可以使用 SYS_FileSystem.saveFile() 接口将文件导出到本地文件系统