## 主要改进 - 实现 /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>
45 lines
2.1 KiB
HTML
45 lines
2.1 KiB
HTML
<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>DbElement.GetAsString Method (DbAttribute)</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">DbElement.GetAsString Method (DbAttribute)</h1>
|
||
</div>
|
||
</div>
|
||
<div id="nstext">
|
||
<p> Get Attribute value on Element as text. This method works for all attributes that are valid ion this element The string returned will be correctly formated for output taking into account the current units. e.g. if in imperial units a position might be output as 'W 39'4.7/16 N 59'0.85/128 U 4'0.31/128'. This method throws an exception if attribute is invalid. </p>
|
||
<div class="syntax">public abstract <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> GetAsString(<br /> <a href="Aveva.Pdms.Database.DbAttribute.html">DbAttribute</a> <i>attributeName</i><br />);</div>
|
||
<h4 class="dtH4">Parameters</h4>
|
||
<dl>
|
||
<dt>
|
||
<i>attributeName</i>
|
||
</dt>
|
||
<dd>Attribute to query</dd>
|
||
</dl>
|
||
<h4 class="dtH4">Return Value</h4>
|
||
<p>Text value</p>
|
||
<h4 class="dtH4">See Also</h4>
|
||
<p>
|
||
<a href="Aveva.Pdms.Database.DbElement.html">DbElement Class</a> | <a href="Aveva.Pdms.Database.html">Aveva.Pdms.Database Namespace</a> | <a href="Aveva.Pdms.Database.DbElement.GetAsString_overloads.html">DbElement.GetAsString Overload List</a></p>
|
||
|
||
<hr />
|
||
<div id="footer">©AVEVA Solutions Ltd 2007</div>
|
||
</div>
|
||
</body>
|
||
</html> |