Home > PCB_ManufactureData > getAutoRouteJsonFile
PCB_ManufactureData.getAutoRouteJsonFile() 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 Auto routing file (JSON)
Signature
typescript
function getAutoRouteJsonFile(fileName?: string): Promise<File | undefined>;1
Parameters
Parameter | Type | Description |
|---|---|---|
fileName | string | (Optional) File name |
Returns
Promise<File | undefined>
Auto routing JSON file data
Remarks
You can use SYS_FileSystem.saveFile() API export the file to the local file system
Example
javascript
const autoRouteJson = await eda.pcb_ManufactureData.getAutoRouteJsonFile('AutoRoute_Json');
if (autoRouteJson) {
await eda.sys_FileSystem.saveFile(autoRouteJson);
}1
2
3
4
2
3
4