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

108 lines
6.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>DbAttributeField 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">DbAttributeField Enumeration</h1>
</div>
</div>
<div id="nstext">
<p> List of Attribute component field identifiers. </p>
<div class="syntax">
<div>public enum DbAttributeField</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>NAME</b></td><td> Attribute name. </td></tr>
<tr valign="top"><td><b>DESTEX</b></td><td> Textual description. </td></tr>
<tr valign="top"><td><b>TYPE</b></td><td> Type of attribute. e.g. int </td></tr>
<tr valign="top"><td><b>SIZE</b></td><td> Maximum Size of attribute </td></tr>
<tr valign="top"><td><b>UNIT</b></td><td> Units for attribute, i.e. distance or bore or none </td></tr>
<tr valign="top"><td><b>VISI</b></td><td> Visible or not </td></tr>
<tr valign="top"><td><b>ITYP</b></td><td> Formatting type </td></tr>
<tr valign="top"><td><b>DTLATT</b></td><td> attribute to be used in Datal instead of given one. AVEVA USE ONLY </td></tr>
<tr valign="top"><td><b>DEFER</b></td><td> Datal-type output reference deferral. AVEVA USE ONLY </td></tr>
<tr valign="top"><td><b>ITSATT</b></td><td> DRAFT Intelligent Text System basic value. AVEVA USE ONLY. </td></tr>
<tr valign="top"><td><b>COORD</b></td><td> DRAFT Intelligent Text System coordinate. AVEVA USE ONLY. </td></tr>
<tr valign="top"><td><b>ITSEL</b></td><td> DRAFT Intelligent Text System navigation. AVEVA USE ONLY. </td></tr>
<tr valign="top"><td><b>QSET</b></td><td> If false then attribute may only be queried </td></tr>
<tr valign="top"><td><b>DTYP</b></td><td> Underlying dabacon type </td></tr>
<tr valign="top"><td><b>CASC</b></td><td> True for attributes whose values are cascaded down when an element is created </td></tr>
<tr valign="top"><td><b>TUBE</b></td><td> Is attribute valid on TUBI </td></tr>
<tr valign="top"><td><b>QTXT</b></td><td> Query text </td></tr>
<tr valign="top"><td><b>RPTX</b></td><td> Reporter text </td></tr>
<tr valign="top"><td><b>CATPAR</b></td><td> Catalogue parameter or not </td></tr>
<tr valign="top"><td><b>QSUPPA</b></td><td> Suppress output </td></tr>
<tr valign="top"><td><b>QUAL</b></td><td> Attribute has a qualifier </td></tr>
<tr valign="top"><td><b>INVIS</b></td><td> Attribute is always invisible </td></tr>
<tr valign="top"><td><b>DESRUL</b></td><td> True for a ref attribute that allows rules </td></tr>
<tr valign="top"><td><b>LGSPLA</b></td><td> True if attribute for a design db is writable within spooler </td></tr>
<tr valign="top"><td><b>TKEYLN</b></td><td> Key length for an integer table </td></tr>
<tr valign="top"><td><b>TDATLN</b></td><td> Data length for an integer table </td></tr>
<tr valign="top"><td><b>CATRUL</b></td><td> true if attribute can be used in a catalogue rule </td></tr>
<tr valign="top"><td><b>TABLE</b></td><td> true if attribute is a table attribute </td></tr>
<tr valign="top"><td><b>DEPEND</b></td><td> List of real attributes on which a pseudo attribute depends </td></tr>
<tr valign="top"><td><b>CHANGE</b></td><td> Indicates 'change type' category </td></tr>
<tr valign="top"><td><b>CATEG</b></td><td> CATEGORY: Category of attribute for organization in documentation </td></tr>
<tr valign="top"><td><b>DEFI</b></td><td> Definition: DDL or Pseudo. </td></tr>
<tr valign="top"><td><b>WDEFI</b></td><td> Definition for writing: DDL or Pseudo. </td></tr>
<tr valign="top"><td><b>SYNO</b></td><td> Synonym mapping. </td></tr>
<tr valign="top"><td><b>EQUIVA</b></td><td> EQUIVA: Attribute to be used when determining value of associated pseudoattribute </td></tr>
<tr valign="top"><td><b>TABATT</b></td><td> TABATT: Table attribute that provides permitted values when setting associated attribute </td></tr>
<tr valign="top"><td><b>PLCF</b></td><td> P-line cache change flag. </td></tr>
<tr valign="top"><td><b>DFDP</b></td><td> Default precision (D.P.s) </td></tr>
<tr valign="top"><td><b>TRUN</b></td><td> Truncation possible? </td></tr>
<tr valign="top"><td><b>DCHC</b></td><td> DESIGN change code. </td></tr>
<tr valign="top"><td><b>COPY</b></td><td> Copy option. </td></tr>
<tr valign="top"><td><b>PNAME</b></td><td> P-point or P-line specific. </td></tr>
<tr valign="top"><td><b>IDREF</b></td><td> ID reference required for pseudo attribute? </td></tr>
<tr valign="top"><td><b>EXPSIZ</b></td><td> Expected size of Splash element. </td></tr>
<tr valign="top"><td><b>TBLTYP</b></td><td> Integer table type. </td></tr>
<tr valign="top"><td><b>PRTCTA</b></td><td> Attribute protected? </td></tr>
<tr valign="top"><td><b>AVAIDB</b></td><td> AVAIDB: Hash codes of databases in which attribute is defined </td></tr>
<tr valign="top"><td><b>DACCHK</b></td><td> DACCHK: Data access control checking status </td></tr>
<tr valign="top"><td><b>ENUM</b></td><td> ENUM: Indicates an integer which is really an enumeration </td></tr>
<tr valign="top"><td><b>RULEDP</b></td><td> RULDEP: List of other attributes that affect the value of this attribute </td></tr>
<tr valign="top"><td><b>CONNEX</b></td><td> CONNEX: Whether attribute defines a connection </td></tr>
<tr valign="top"><td><b>PSCODE</b></td><td> PSCODE: </td></tr>
<tr valign="top"><td><b>MANUAL</b></td><td> Manual category </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>