## 主要改进 - 实现 /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>
100 lines
11 KiB
HTML
100 lines
11 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>DbElementType Members</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">DbElementType Members
|
||
</h1>
|
||
</div>
|
||
</div>
|
||
<div id="nstext">
|
||
<p>
|
||
<a href="Aveva.Pdms.Database.DbElementType.html">DbElementType overview</a>
|
||
</p>
|
||
<h4 class="dtH4">Public Static Methods</h4>
|
||
<div class="tablediv">
|
||
<table class="dtTABLE" cellspacing="0">
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><img src="static.gif" /><a href="Aveva.Pdms.Database.DbElementType.GetAllElementTypes.html">GetAllElementTypes</a></td><td width="50%"> List of all element types </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><img src="static.gif" /><a href="Aveva.Pdms.Database.DbElementType.GetElementType_overloads.html">GetElementType</a></td><td width="50%">Overloaded. Creates and returns a new Element Type </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><img src="static.gif" /><a href="Aveva.Pdms.Database.DbElementType.NounFieldType.html">NounFieldType</a></td><td width="50%"> The type of a noun field </td></tr></table>
|
||
</div>
|
||
<h4 class="dtH4">Public Static Operators</h4>
|
||
<div class="tablediv">
|
||
<table class="dtTABLE" cellspacing="0">
|
||
<tr VALIGN="top"><td width="50%"><img src="puboperator.gif"></img><img src="static.gif" /><a href="Aveva.Pdms.Database.DbElementType.op_Equality.html">Equality Operator</a></td><td width="50%"> Element type equality operator. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="puboperator.gif"></img><img src="static.gif" /><a href="Aveva.Pdms.Database.DbElementType.op_Inequality.html">Inequality Operator</a></td><td width="50%"> Element type inequality operator. </td></tr></table>
|
||
</div>
|
||
<h4 class="dtH4">Public Instance Properties</h4>
|
||
<div class="tablediv">
|
||
<table class="dtTABLE" cellspacing="0">
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.BaseType.html">BaseType</a></td><td width="50%"> Return Base type. This will be different for UDETs. Otherwise it will return this </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.Description.html">Description</a></td><td width="50%"> Description for this Element type </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.HardType.html">HardType</a></td><td width="50%"> Return hard type- This will be different if a UDET or if a Dabacon 'softtype' was used in the definition. Otherwise it will return this </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.IsPrimary.html">IsPrimary</a></td><td width="50%"> True, if this Element type is primary </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.IsPrimaryList.html">IsPrimaryList</a></td><td width="50%"> True, if this Element type has a primary list </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.IsPseudo.html">IsPseudo</a></td><td width="50%"> True, if this Element type is pseudo </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.IsSynonym.html">IsSynonym</a></td><td width="50%"><EFBFBD></td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.IsValid.html">IsValid</a></td><td width="50%"> True, if this Element type is valid </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.IsWorld.html">IsWorld</a></td><td width="50%"> True, if this Element type is a World type </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.Name.html">Name</a></td><td width="50%"> Name of this Element type </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.ShortName.html">ShortName</a></td><td width="50%"> Short name of this Element type </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.ValidConnections.html">ValidConnections</a></td><td width="50%"> True, if this Element type has valid connections </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbElementType.Visible.html">Visible</a></td><td width="50%"> True, if this Element type is visible </td></tr></table>
|
||
</div>
|
||
<h4 class="dtH4">Public Instance Methods</h4>
|
||
<div class="tablediv">
|
||
<table class="dtTABLE" cellspacing="0">
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.AscendantTypes.html">AscendantTypes</a></td><td width="50%"> Return list of possible ascendant Element types. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.CompareTo.html">CompareTo</a></td><td width="50%"> Compare Element type with a generic object. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.DatabaseTypes.html">DatabaseTypes</a></td><td width="50%"> Return list of database types which can contain Elements of this type. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.DescendantTypes.html">DescendantTypes</a></td><td width="50%"> Return list of possible descendant types. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.Equals.html">Equals</a></td><td width="50%"> Test for equality with a generic object. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.GetAllUdas.html">GetAllUdas</a></td><td width="50%"><EFBFBD></td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.GetAsString_overloads.html">GetAsString</a></td><td width="50%">Overloaded. <20></td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.GetAsStringArray_overloads.html">GetAsStringArray</a></td><td width="50%">Overloaded. Gets the value of any field as an array of strings; note this may be of length 0 </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.GetBool.html">GetBool</a></td><td width="50%"> Get boolean metadata for Element type. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.GetElementTypeArray.html">GetElementTypeArray</a></td><td width="50%"> Get array of Element types metadata for Element type. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.GetHashCode.html">GetHashCode</a></td><td width="50%"> Get unique integer identifier for Element type. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.GetInteger.html">GetInteger</a></td><td width="50%"> Get integer metadata for Element type </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.GetIntegerArray.html">GetIntegerArray</a></td><td width="50%"> Get integer array metadata for the given noun field. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.GetString.html">GetString</a></td><td width="50%"> Get string metadata for Element type. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetTypeTopic.htm">GetType</a> (inherited from <b>Object</b>)</td><td width="50%">
|
||
Gets the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemTypeClassTopic.htm">Type</a> of the current instance.
|
||
</td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.getUDAs.html">getUDAs</a></td><td width="50%"><EFBFBD></td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.IsAttributeValid.html">IsAttributeValid</a></td><td width="50%"> Check whether a given attribute is valid for this Element type. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.MemberTypes.html">MemberTypes</a></td><td width="50%"> Return list of allowed member types for Elements of this type. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.OwnerTypes.html">OwnerTypes</a></td><td width="50%"> Return list of allowed owner types for Elements of this type. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.PassObjectToCPP.html">PassObjectToCPP</a></td><td width="50%"> Pass object through to unmanaged C++. AVEVA USE ONLY. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.ReferenceTypes.html">ReferenceTypes</a></td><td width="50%"> Return list of allowed reference types for Attribute, given this Element type. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.SystemAttributes.html">SystemAttributes</a></td><td width="50%"> Return system attributes and UDAs on this Element type. </td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassToStringTopic.htm">ToString</a> (inherited from <b>Object</b>)</td><td width="50%">
|
||
Returns a <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a> that represents the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.
|
||
</td></tr>
|
||
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Aveva.Pdms.Database.DbElementType.VisibleSystemAttributes.html">VisibleSystemAttributes</a></td><td width="50%"><EFBFBD></td></tr></table>
|
||
</div>
|
||
<h4 class="dtH4">See Also</h4>
|
||
<p>
|
||
<a href="Aveva.Pdms.Database.DbElementType.html">DbElementType Class</a> | <a href="Aveva.Pdms.Database.html">Aveva.Pdms.Database Namespace</a></p>
|
||
|
||
<hr />
|
||
<div id="footer">©AVEVA Solutions Ltd 2007</div>
|
||
</div>
|
||
</body>
|
||
</html> |