Home > PCB_ManufactureData > getPickAndPlaceFile
PCB_ManufactureData.getPickAndPlaceFile() 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 Coordinate file (PickAndPlace)
Signature
typescript
function getPickAndPlaceFile(
fileName?: string,
fileType?: 'xlsx' | 'csv',
unit?: ESYS_Unit.MILLIMETER | ESYS_Unit.MIL,
): Promise<File | undefined>;1
2
3
4
5
2
3
4
5
Parameters
Parameter | Type | Description |
|---|---|---|
fileName | string | (Optional) File name |
fileType | 'xlsx' | 'csv' | (Optional) File type |
unit | (Optional) Unit |
Returns
Promise<File | undefined>
Coordinate file data
Remarks
You can use SYS_FileSystem.saveFile() API export the file to the local file system
Example
javascript
// 导出毫米单位的 Excel 格式坐标文件
const pnpFile = await eda.pcb_ManufactureData.getPickAndPlaceFile(
'PickAndPlace',
'xlsx',
ESYS_Unit.MILLIMETER
);
if (pnpFile) {
await eda.sys_FileSystem.saveFile(pnpFile);
}1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9