Home > SCH_ManufactureData > getExportDocumentFile
SCH_ManufactureData.getExportDocumentFile() 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.
获取导出文档文件
Signature
public getExportDocumentFile(fileName?: string, fileType?: ESCH_ExportDocumentFileType, typeSpecificParams?: { theme?: undefined | 'Default' | 'White on Black' | 'Black on White'; lineWidth?: undefined | 'Default' | 'Always 1px' | 'Follow the Zoom Change'; displayAttributesAsMenu?: undefined | false | true; size?: undefined | string | { width: number; height: number; unit: ESYS_Unit.MILLIMETER | ESYS_Unit.INCH } }, object?: 'All Schematic' | 'Current Schematic' | 'Current Schematic Page' | string, objectSpecificParams?: { range?: undefined | 'All' | any; outputMethod?: undefined | 'Merged sheet' | 'Separated sheet' }): Promise<File | undefined>;Parameters
Parameter | Type | Description |
|---|---|---|
fileName | string | (Optional) 文件名 |
fileType | (Optional) 文件类型 | |
typeSpecificParams | { theme?: undefined | 'Default' | 'White on Black' | 'Black on White'; lineWidth?: undefined | 'Default' | 'Always 1px' | 'Follow the Zoom Change'; displayAttributesAsMenu?: undefined | false | true; size?: undefined | string | { width: number; height: number; unit: ESYS_Unit.MILLIMETER | ESYS_Unit.INCH } } | (Optional) 类型特定参数 |
object | 'All Schematic' | 'Current Schematic' | 'Current Schematic Page' | string | (Optional) 对象 |
objectSpecificParams | { range?: undefined | 'All' | any; outputMethod?: undefined | 'Merged sheet' | 'Separated sheet' } | (Optional) 对象特定参数 |
Returns
Promise<File | undefined>
导出文档文件数据(或压缩包)
Remarks
可以使用 SYS_FileSystem.saveFile() 接口将文件导出到本地文件系统