Home > PCB_ManufactureData > getAltiumDesignerFile
PCB_ManufactureData.getAltiumDesignerFile() 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 Altium Designer file
Signature
typescript
public getAltiumDesignerFile(fileName?: string): Promise<File | undefined>;1
Parameters
Parameter | Type | Description |
|---|---|---|
fileName | string | (Optional) File name |
Returns
Promise<File | undefined>
Altium Designer file data
Remarks
You can use SYS_FileSystem.saveFile() API export the file to the local file system
Example
javascript
//获取 Altium Designer 格式文件
const adFile = await eda.pcb_ManufactureData.getAltiumDesignerFile('Converted_To_AD');
if (adFile) {
await eda.sys_FileSystem.saveFile(adFile);
}1
2
3
4
5
2
3
4
5