Home > SCH_ManufactureData > getExportDocumentFile
SCH_ManufactureData.getExportDocumentFile() method
此 API 当前处于 BETA 预览状态,希望得到开发者的反馈。它的任何功能都可能在接下来的开发进程中被修改,请不要将它用于任何正式环境。
获取导出文档文件
签名
getExportDocumentFile(fileName?: string, fileType?: ESCH_ExportDocumentFileType, typeSpecificParams?: {
theme?: 'Default' | 'White on Black' | 'Black on White';
lineWidth?: 'Default' | 'Always 1px' | 'Follow the Zoom Change';
displayAttributesAsMenu?: boolean;
size?: 'Original Size' | string | {
width: number;
height: number;
unit: ESYS_Unit.INCH | ESYS_Unit.MILLIMETER;
};
}, object?: 'All Schematic' | 'Current Schematic' | 'Current Schematic Page' | string, objectSpecificParams?: {
range?: 'All' | [number, number];
outputMethod?: 'Merged sheet' | 'Separated sheet';
}): Promise<File | undefined>;2
3
4
5
6
7
8
9
10
11
12
13
参数名
参数 | 类型 | 描述 |
|---|---|---|
fileName | string | (Optional) 文件名 |
fileType | (Optional) 文件类型 | |
typeSpecificParams | { theme?: 'Default' | 'White on Black' | 'Black on White'; lineWidth?: 'Default' | 'Always 1px' | 'Follow the Zoom Change'; displayAttributesAsMenu?: boolean; size?: 'Original Size' | string | { width: number; height: number; unit: ESYS_Unit.INCH | ESYS_Unit.MILLIMETER; }; } | (Optional) 类型特定参数 |
object | 'All Schematic' | 'Current Schematic' | 'Current Schematic Page' | string | (Optional) 对象 |
objectSpecificParams | { range?: 'All' | [number, number]; outputMethod?: 'Merged sheet' | 'Separated sheet'; } | (Optional) 对象特定参数 |
返回值
Promise<File | undefined>
导出文档文件数据(或压缩包)
备注
可以使用 SYS_FileSystem.saveFile() 接口将文件导出到本地文件系统