Home > PCB_ManufactureData > getDxfFile
PCB_ManufactureData.getDxfFile() 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.
获取 DXF 文件
Signature
typescript
getDxfFile(fileName?: string, layers?: Array<{
layerId: number;
mirror: boolean;
}>, objects?: Array<string>): Promise<File | undefined>;
1
2
3
4
2
3
4
Parameters
Parameter | Type | Description |
---|---|---|
fileName | string | (Optional) 文件名 |
layers | Array<{ layerId: number; mirror: boolean; }> | (Optional) 导出层 |
objects | Array<string> | (Optional) 导出对象 |
Returns
Promise<File | undefined>
DXF 文件数据
Remarks
可以使用 SYS_FileSystem.saveFile() 接口将文件导出到本地文件系统