Home > DMT_Team > getCurrentTeamInfo
DMT_Team.getCurrentTeamInfo() method
Get the detailed properties of the current team
Signature
typescript
function getCurrentTeamInfo(): Promise<IDMT_TeamItem | undefined>;1
Returns
Promise<IDMT_TeamItem | undefined>
Detailed properties of the team. If it is undefined, the retrieval failed
Remarks
It will get the detailed properties of the team that the project belongs to, associated with the currently open schematic, PCB, or panel that has the last input focus
Example
javascript
// 1. 获取当前团队属性
const team = await eda.dmt_Team.getCurrentTeamInfo();
// 2. 输出当前团队属性(uuid 常用作后续 DMT_Folder/Project API 的 teamUuid 参数)
console.log('当前团队名称:', team?.name);
console.log('当前团队 uuid:', team?.uuid);
console.log('当前团队身份 ID:', team?.identity);1
2
3
4
5
6
7
2
3
4
5
6
7