Home > PCB_Document > importOldAutoLayoutJsonFile
PCB_Document.importOldAutoLayoutJsonFile() 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.
Warning: This API is now obsolete. 建议使用 PCB_ManufactureData.getAutoLayoutJsonFile() 接口提供的自动布线文件,它对应 PCB_Document.importAutoLayoutJsonFile() 导入接口
导入旧版自动布局文件(JSON)
Signature
typescript
importOldAutoLayoutJsonFile(autoLayoutFile: File): Promise<boolean>;
1
Parameters
Parameter | Type | Description |
---|---|---|
autoLayoutFile | File | 欲导入的 JSON 文件 |
Returns
Promise<boolean>
导入操作是否成功
Remarks
可以使用 SYS_FileSystem.openReadFileDialog() 读入文件