Home > PCB_ManufactureData > getTestPointFile
PCB_ManufactureData.getTestPointFile() 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.
Get the test point report file
Signature
typescript
function getTestPointFile(fileName?: string, fileType?: 'xlsx' | 'csv'): Promise<File | undefined>;1
Parameters
Parameter | Type | Description |
|---|---|---|
fileName | string | (Optional) File name |
fileType | 'xlsx' | 'csv' | (Optional) File type |
Returns
Promise<File | undefined>
Test point report file data
Remarks
You can use SYS_FileSystem.saveFile() API export the file to the local file system
Example
javascript
// 保存测试点报告文件到本地
const testPointFile = await eda.pcb_ManufactureData.getTestPointFile('Test_Point_Report', 'xlsx');
if (testPointFile) {
await eda.sys_FileSystem.saveFile(testPointFile);
}1
2
3
4
5
2
3
4
5