Home > DMT_Schematic > getSchematicInfo
DMT_Schematic.getSchematicInfo() 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 detailed properties of Schematic
Signature
typescript
function getSchematicInfo(schematicUuid: string): Promise<IDMT_SchematicItem | undefined>;1
Parameters
Parameter | Type | Description |
|---|---|---|
schematicUuid | string | Schematic UUID |
Returns
Promise<IDMT_SchematicItem | undefined>
Schematic detailed properties of; if it is undefined, the retrieval failed
Example
javascript
// 1. 创建测试原理图并等 1.5s 同步
const schematicUuid = await eda.dmt_Schematic.createSchematic();
await new Promise(r => setTimeout(r, 1500));
// 2. 按 UUID 查询原理图详细属性
const info = await eda.dmt_Schematic.getSchematicInfo(schematicUuid);
// 3. 输出属性
console.log('name:', info?.name);
console.log('itemType:', info?.itemType);
console.log('parentProjectUuid:', info?.parentProjectUuid);
console.log('pages:', (info?.page || []).map(p => p.name).join(', '));
// 4. 清理测试原理图
await new Promise(r => setTimeout(r, 1000));
const deleted = await eda.dmt_Schematic.deleteSchematic(schematicUuid);
console.log('deleted:', deleted);1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17