TellmePdmsPluging/NetInterfaceReferenceFiles/Aveva.Pdms.Database/Aveva.Pdms.Database.DbNounSpecialField.html
root 3082148d7e 实现PDMS模型状态API并移除硬编码数据
## 主要改进
- 实现 /api/status/model 接口,返回真实PDMS模型状态信息
- 使用MDB.CurrentMDB、Project.CurrentProject等AVEVA API获取真实数据
- 移除硬编码的CurrentSession、PositionInfo、PdmsSpecific等复杂结构
- 简化数据模型,只保留核心的真实数据字段

## 技术实现
- 通过DbSession获取真实的用户名、会话开始时间和持续时间
- 通过WorldMembers()获取真实的模型元素统计
- 修复DateTime类型的null合并运算符编译错误
- 清理不使用的方法和类定义

## API返回数据
现在返回的数据主要包含真实的PDMS信息:
- ModelLoaded: MDB连接状态检查
- ProjectName: 真实的设计数据库名称
- MdsName: 真实的MDB名称
- UserName: 真实的数据库会话用户
- StartTime: 真实的会话创建时间
- TotalElements: 真实的模型元素数量统计

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 10:36:02 +08:00

70 lines
3.5 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>DbNounSpecialField Enumeration</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">AVEVA Database .NET Public Interface</td>
<td class="product">
</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">DbNounSpecialField Enumeration</h1>
</div>
</div>
<div id="nstext">
<p> Other DbElementType information which may be included in tabular output. The values of special fields may be derived from fields or other information on the output. Special fields must be supported by the GetAsString method, and can thus be used in DbElementTypeFormats. However, they cannot be used in most other pleaces where a field may be. </p>
<div class="syntax">
<div>public enum DbNounSpecialField</div>
</div>
<h4 class="dtH4">Members</h4>
<div class="tablediv">
<table class="dtTABLE" cellspacing="0">
<tr valign="top">
<th width="50%">Member Name</th>
<th width="50%">Description</th>
</tr>
<tr valign="top"><td><b>HASHCODE</b></td><td> The hash code as an integer </td></tr>
<tr valign="top"><td><b>INTERNALNAME</b></td><td> The internal name, ie, the hash code unhashed. Note that every DbElementType will have an internal name, but invisible attributes will not have a NAME </td></tr>
<tr valign="top"><td><b>HARDTYPE</b></td><td> Hard type </td></tr>
<tr valign="top"><td><b>BASETYPE</b></td><td> Base type </td></tr>
<tr valign="top"><td><b>ASCENDANTTYPES</b></td><td> List of ascendant types </td></tr>
<tr valign="top"><td><b>SYSTEMATTRIBUTES</b></td><td> List of visible system attributes </td></tr>
<tr valign="top"><td><b>DESCENDANTTYPES</b></td><td> List of valid descendant types </td></tr>
<tr valign="top"><td><b>MEMBERTYPES</b></td><td> List of valid member types </td></tr>
<tr valign="top"><td><b>OWNERTYPES</b></td><td> List of valid owner types </td></tr>
<tr valign="top"><td><b>ISPSEUDO</b></td><td> Whether element type is pseuco </td></tr>
<tr valign="top"><td><b>SHORTNAME</b></td><td> Shortname </td></tr>
<tr valign="top"><td><b>ALLSYSTEMATTRIBUTES</b></td><td> List of all system attributes, including any that are not visible </td></tr>
<tr valign="top"><td><b>CAPITALISEDNAME</b></td><td> Name, with first letter in upper case and rest in lower </td></tr>
<tr valign="top"><td><b>SYSATTSANDDESC</b></td><td> List of visible system attributes together with their descriptions </td></tr>
<tr valign="top"><td><b>PRIMARYTYPE</b></td><td> String 'Primary Element' if and only if type is primary </td></tr></table>
</div>
<h4 class="dtH4">Requirements</h4>
<p>
<b>Namespace: </b>
<a href="Aveva.Pdms.Database.html">Aveva.Pdms.Database</a>
</p>
<p>
<b>Assembly: </b>Aveva.Pdms.Database (in Aveva.Pdms.Database.dll)
</p>
<h4 class="dtH4">See Also</h4>
<p>
<a href="Aveva.Pdms.Database.html">Aveva.Pdms.Database Namespace</a>
</p>
<hr />
<div id="footer">&copy;AVEVA Solutions Ltd 2007</div>
</div>
</body>
</html>