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

126 lines
8.1 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>DbNounField 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">DbNounField Enumeration</h1>
</div>
</div>
<div id="nstext">
<p> List of Element component field identifiers. </p>
<div class="syntax">
<div>public enum DbNounField</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>DEFI</b></td><td> Real or pseudo </td></tr>
<tr valign="top"><td><b>VISI</b></td><td> Visible or not </td></tr>
<tr valign="top"><td><b>RPTX</b></td><td> REPORTER text. </td></tr>
<tr valign="top"><td><b>NAME</b></td><td> Element type name </td></tr>
<tr valign="top"><td><b>LGSPLN</b></td><td> element may be moved within spooler </td></tr>
<tr valign="top"><td><b>CHOL</b></td><td> gives the complement of a hole </td></tr>
<tr valign="top"><td><b>DBTP</b></td><td> DB types containing element </td></tr>
<tr valign="top"><td><b>CSIG</b></td><td> Element is primary in terms of claiming </td></tr>
<tr valign="top"><td><b>TOPF</b></td><td> Element is a top level element in the 3D graphics </td></tr>
<tr valign="top"><td><b>PRMF</b></td><td> True if a primitive </td></tr>
<tr valign="top"><td><b>POPF</b></td><td> True if a point </td></tr>
<tr valign="top"><td><b>XTRF</b></td><td> true if an extrusion like element </td></tr>
<tr valign="top"><td><b>FEWO</b></td><td> true if element exists at the world level </td></tr>
<tr valign="top"><td><b>PIPC</b></td><td> true if a piping component </td></tr>
<tr valign="top"><td><b>HOLC</b></td><td> true if a hole </td></tr>
<tr valign="top"><td><b>CATC</b></td><td> true if a catalogue component </td></tr>
<tr valign="top"><td><b>HNGC</b></td><td> true if a hanger component </td></tr>
<tr valign="top"><td><b>PSKC</b></td><td> Component can have a PSKEY </td></tr>
<tr valign="top"><td><b>GCODE</b></td><td> Draft graphical code </td></tr>
<tr valign="top"><td><b>PSOWNR</b></td><td> True if owner could be different from Dabacon owner </td></tr>
<tr valign="top"><td><b>PSNEXT</b></td><td> True if next element could be different from Dabacon next element </td></tr>
<tr valign="top"><td><b>PSFRST</b></td><td> True if first member could be different from Dabacon first member element </td></tr>
<tr valign="top"><td><b>PICK</b></td><td> True for a pickable element </td></tr>
<tr valign="top"><td><b>XPVISI</b></td><td> True if element is visible </td></tr>
<tr valign="top"><td><b>SECOND</b></td><td> true if element has a secondary hierarchy </td></tr>
<tr valign="top"><td><b>FOLDER</b></td><td> List of types to create folders in the explorer </td></tr>
<tr valign="top"><td><b>LNODE</b></td><td> Indicates last node in Explorer </td></tr>
<tr valign="top"><td><b>VALIDC</b></td><td> Used to determine connections- AVEVA USE ONLY </td></tr>
<tr valign="top"><td><b>DESTEX</b></td><td> Textual description. </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>SYNO</b></td><td> Pointer to synonym; 0 if not a synonym </td></tr>
<tr valign="top"><td><b>QMOD</b></td><td> QMOD: True if the user can modify the element </td></tr>
<tr valign="top"><td><b>PRTCTN</b></td><td> True if design element is protected </td></tr>
<tr valign="top"><td><b>COMP</b></td><td> DO NOT USE - REDUNDANT </td></tr>
<tr valign="top"><td><b>IMAP</b></td><td> Significance with respect to the spatial map </td></tr>
<tr valign="top"><td><b>CHANGE</b></td><td> CHANGE: Control for changing element type. Elements with the same value of CHANGE may have their types changed to one another </td></tr>
<tr valign="top"><td><b>CATGLE</b></td><td> CATGLE: Catalogue database geometry level </td></tr>
<tr valign="top"><td><b>CATDEP</b></td><td> CATDEP: Catalogue dependencies </td></tr>
<tr valign="top"><td><b>DESDEP</b></td><td> DESDEP: Design dependencies </td></tr>
<tr valign="top"><td><b>GRAPH</b></td><td> GRAPH: Relates to how the 3D Graphics is generated </td></tr>
<tr valign="top"><td><b>GORP</b></td><td> True for an item in a geomset or negative geomset or plineset or pointset </td></tr>
<tr valign="top"><td><b>SIGNIF</b></td><td> SIGNIF: True for significant types </td></tr>
<tr valign="top"><td><b>ANCES</b></td><td> True for an element which is an ancestor of another element </td></tr>
<tr valign="top"><td><b>CLWTHN</b></td><td> CLWTHN: True for element types that should, by default, be in the NOCHECK WITHIN list for CLASHER </td></tr>
<tr valign="top"><td><b>CLRSEC</b></td><td> CLRSEC: True for elements that should, by default, be included in the CLASH REPORT list for CLASHER </td></tr>
<tr valign="top"><td><b>WLDORI</b></td><td> WLDORI: True for element types whose orientation is deemed to be with respect to the world </td></tr>
<tr valign="top"><td><b>VOLDEF</b></td><td> VOLDEF: True for element types which will, by default, be included in volumetric queries </td></tr>
<tr valign="top"><td><b>HULC</b></td><td> HULC: Hull component </td></tr>
<tr valign="top"><td><b>DTXC</b></td><td> Detail text component </td></tr>
<tr valign="top"><td><b>COMC</b></td><td> ACOM-HCOM component </td></tr>
<tr valign="top"><td><b>EQUC</b></td><td> Equipment component </td></tr>
<tr valign="top"><td><b>FRMC</b></td><td> Framework component </td></tr>
<tr valign="top"><td><b>PFRC</b></td><td> Positioned framework component </td></tr>
<tr valign="top"><td><b>FITC</b></td><td> Fitting component </td></tr>
<tr valign="top"><td><b>GMTC</b></td><td> 2D Geomset component </td></tr>
<tr valign="top"><td><b>GMSC</b></td><td> Geomset component </td></tr>
<tr valign="top"><td><b>DTSC</b></td><td> Dataset component </td></tr>
<tr valign="top"><td><b>NGMC</b></td><td> Negative geomset component </td></tr>
<tr valign="top"><td><b>JOIC</b></td><td> Joint component </td></tr>
<tr valign="top"><td><b>PLNC</b></td><td> Plineset component </td></tr>
<tr valign="top"><td><b>PRFC</b></td><td> Profile component </td></tr>
<tr valign="top"><td><b>PTSC</b></td><td> Pointset component </td></tr>
<tr valign="top"><td><b>BUIC</b></td><td> Building component </td></tr>
<tr valign="top"><td><b>LNGDES</b></td><td> Long description of element type for documentation </td></tr>
<tr valign="top"><td><b>ATTDES</b></td><td> Description following attributes for documentation </td></tr>
<tr valign="top"><td><b>DIAGRM</b></td><td> Diagram title for documentation </td></tr>
<tr valign="top"><td><b>ENDNOT</b></td><td> End note for documentation </td></tr>
<tr valign="top"><td><b>DTLNAM</b></td><td> DTLNAM: Element has NAME derived from specified attribute </td></tr>
<tr valign="top"><td><b>DRQFIL</b></td><td> DRQFIL: True for Elements which have Drawing files </td></tr>
<tr valign="top"><td><b>DROFIL</b></td><td> DROFIL: True for Elements which own Drawing-file elements </td></tr>
<tr valign="top"><td><b>MANUAL</b></td><td> MANUAL: 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>