Home > DMT_EditorControl > openDocument
DMT_EditorControl.openDocument() method
打开文档
Signature
typescript
openDocument(documentUuid: string, splitScreenId?: string): Promise<string | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
documentUuid | string | 文档 UUID,此处支持 IDMT_SchematicItem.uuid、IDMT_SchematicPageItem.uuid、IDMT_PcbItem.uuid、IDMT_PanelItem.uuid 作为输入 |
splitScreenId | string | (Optional) 分屏 ID,即 DMT_EditorControl.getSplitScreenTree() 方法获取到的 IDMT_EditorSplitScreenItem.id |
Returns
Promise<string | undefined>
标签页 ID,如若为 undefined
,则打开文档失败