TellmePdmsPluging/NetInterfaceReferenceFiles/Aveva.Pdms.Database/Aveva.Pdms.Database.DbAttributeListFormatProperties.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

50 lines
5.8 KiB
HTML
Raw 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>DbAttributeListFormat Properties</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">DbAttributeListFormat Properties</h1>
</div>
</div>
<div id="nstext">
<p>The properties of the <b>DbAttributeListFormat</b> class are listed below. For a complete list of <b>DbAttributeListFormat</b> class members, see the <a href="Aveva.Pdms.Database.DbAttributeListFormatMembers.html">DbAttributeListFormat Members</a> topic.</p>
<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.DbAttributeListFormat.AttributeFormat.html">AttributeFormat</a></td><td width="50%"> Gets or sets the attribute format to be used for each individual attribute </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbAttributeListFormat.BreakCount.html">BreakCount</a></td><td width="50%"> Gets or sets the number of attributes to be output before the BreakText is inserted. This allows, for example, a number of attributes to be output on the same line, or a blank line to be inserted after every 'n' attributes to aid readability. Note that the counter is reset by a SplitField. A value of 0 indicates that no such breaks are required. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbAttributeListFormat.BreakText.html">BreakText</a></td><td width="50%"> Gets or sets the text to be output after ever BreakCount lines within a section, e.g. a new line (if putting several attributes on the same line) or an additional new line (if adding a blank line after every 'n' attributes). This is not used if BreakCount is set to 0 (the default). </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbAttributeListFormat.IncludeSplitFieldName.html">IncludeSplitFieldName</a></td><td width="50%"> Gets or sets whether or not the new value of the SplitField will be output whenever this changes between one attribute and the next. This is not used if the SplitField has not been set. If true, the new value of the field is output between the 'TextBeforeSplitFieldName' and 'TextAfterSplitFieldName' </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbAttributeListFormat.SplitField.html">SplitField</a></td><td width="50%"> Gets or sets a field to use as the split value; whenever the value of this field changes between one attribute and the next, the 'TextBeforeSplitFieldName', the new value of the field (optional), and the 'TextAfterSplitFieldName' are inserted into the output </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbAttributeListFormat.TextAfterAttribute.html">TextAfterAttribute</a></td><td width="50%"> Gets or sets the text to be inserted after each individual attribute (e.g. a new line character) </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbAttributeListFormat.TextAfterSplitFieldName.html">TextAfterSplitFieldName</a></td><td width="50%"> Gets or sets the text to be inserted after the field name whenever the value of the specified field changes between one attribute and the next. This is not used if the SplitField has not been set. Note that this text is still output even if 'IncludeSplitFieldName' is false so that the actual split field value itself is not. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbAttributeListFormat.TextAtEnd.html">TextAtEnd</a></td><td width="50%"> Gets or sets the text to be output after the final attribute in the list </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbAttributeListFormat.TextAtStart.html">TextAtStart</a></td><td width="50%"> Gets or sets the text to be inserted at the start of the formatted output (e.g. a header) </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbAttributeListFormat.TextBeforeAttribute.html">TextBeforeAttribute</a></td><td width="50%"> Gets or sets the text to be inserted before each individual attribute </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"></img><a href="Aveva.Pdms.Database.DbAttributeListFormat.TextBeforeSplitFieldName.html">TextBeforeSplitFieldName</a></td><td width="50%"> Gets or sets the text to be inserted before the field name whenever the value of the specified field changes between one attribute and the next. This is not used if the SplitField has not been set. Note that this text is still output even if 'IncludeSplitFieldName' is false so that the actual split field value itself is not. </td></tr></table>
</div>
<h4 class="dtH4">See Also</h4>
<p>
<a href="Aveva.Pdms.Database.DbAttributeListFormat.html">DbAttributeListFormat Class</a> | <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>