## 主要改进 - 实现 /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>
95 lines
5.4 KiB
HTML
95 lines
5.4 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>DbAttributeIntrepidQueryType 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">DbAttributeIntrepidQueryType Enumeration</h1>
|
||
</div>
|
||
</div>
|
||
<div id="nstext">
|
||
<p> List of Intrepid Query Types * Enumerates possible values of the ITYP field of attributes </p>
|
||
<div class="syntax">
|
||
<div>public enum DbAttributeIntrepidQueryType</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>INTEGER</b></td><td> Integer (and int arrays) </td></tr>
|
||
<tr valign="top"><td><b>REALS</b></td><td> Real (and real arrays) </td></tr>
|
||
<tr valign="top"><td><b>REFERENCE</b></td><td> Reference </td></tr>
|
||
<tr valign="top"><td><b>MEMBERLIST</b></td><td> Member List </td></tr>
|
||
<tr valign="top"><td><b>LOGICAL</b></td><td> Logical (and logical arrays) </td></tr>
|
||
<tr valign="top"><td><b>REFARRAY</b></td><td> Reference array </td></tr>
|
||
<tr valign="top"><td><b>DATE</b></td><td> Date </td></tr>
|
||
<tr valign="top"><td><b>TEXTorEXPRESSION</b></td><td> Text or expression </td></tr>
|
||
<tr valign="top"><td><b>PSEUDOTEXT</b></td><td> Pseudo text (no quotes) </td></tr>
|
||
<tr valign="top"><td><b>TEXT</b></td><td> Text </td></tr>
|
||
<tr valign="top"><td><b>POSITION</b></td><td> Position attribute </td></tr>
|
||
<tr valign="top"><td><b>DIRECTION</b></td><td> Direction attribute in ENU format </td></tr>
|
||
<tr valign="top"><td><b>ORIENTATION</b></td><td> Orientation </td></tr>
|
||
<tr valign="top"><td><b>PARAMETERS</b></td><td> Parameters (hashed word/value mixture) </td></tr>
|
||
<tr valign="top"><td><b>PPOINT</b></td><td> Ppoint info </td></tr>
|
||
<tr valign="top"><td><b>PTSETPARAMETERS</b></td><td> Integer array - ptset parameters (axis) </td></tr>
|
||
<tr valign="top"><td><b>PTSPOINTS</b></td><td> Integer array = PTS points for lines </td></tr>
|
||
<tr valign="top"><td><b>INTEGERCODE</b></td><td> Integer - integer code number - DRAFT only </td></tr>
|
||
<tr valign="top"><td><b>GAPSATTRIBUTES</b></td><td> Real array - gaps attributes - DRAFT only </td></tr>
|
||
<tr valign="top"><td><b>ENULIMITATTRIBUTES</b></td><td> Real array = ENU limit attributes - DRAFT only </td></tr>
|
||
<tr valign="top"><td><b>REALCODEDATTRIBUTES</b></td><td> Real - real coded attributes - DRAFT only </td></tr>
|
||
<tr valign="top"><td><b>PACKEDINTEGER</b></td><td> Integer - packed integer attribute - DRAFT only </td></tr>
|
||
<tr valign="top"><td><b>VIEWPOSITION</b></td><td> Real array -- View position attribute - DRAFT only </td></tr>
|
||
<tr valign="top"><td><b>SPECIALVALUE</b></td><td> integer, real array, real - attribute with a special value - DRAFT only </td></tr>
|
||
<tr valign="top"><td><b>PLDI</b></td><td> PLDI - angle if 1 value, direction if 3 </td></tr>
|
||
<tr valign="top"><td><b>LOGICALONOFF</b></td><td> Logical - logical attribute set by ON/OFF </td></tr>
|
||
<tr valign="top"><td><b>PACKEDRELEASES</b></td><td> Packed releases (Strutural attribute) </td></tr>
|
||
<tr valign="top"><td><b>SELECTIONCRITERIA</b></td><td> Selection criteria </td></tr>
|
||
<tr valign="top"><td><b>RATIOATTRIBUTE</b></td><td> Real array - ratio attribute </td></tr>
|
||
<tr valign="top"><td><b>DIRECTIONXYZ</b></td><td> Real array - direction in XYZ format </td></tr>
|
||
<tr valign="top"><td><b>REFASREF</b></td><td> Single ref output as a ref </td></tr>
|
||
<tr valign="top"><td><b>HASHEDWORDARRAY</b></td><td> Hashed word array including UDAs </td></tr>
|
||
<tr valign="top"><td><b>XYLIMITATTRIBUTES</b></td><td> Real array = XY limit attributes - DRAFT only </td></tr>
|
||
<tr valign="top"><td><b>IDREFPLUSPPOINT</b></td><td> Integer arrays as ID refs + ppoint </td></tr>
|
||
<tr valign="top"><td><b>ITMTBL</b></td><td> Int array ITMTBL as bolts or additems for ID name </td></tr>
|
||
<tr valign="top"><td><b>AWDOWN</b></td><td> Integer array AWDOWN as ID name weld int. </td></tr>
|
||
<tr valign="top"><td><b>PARTNUMBER</b></td><td> Partnumber for %SPLTBL attribute </td></tr>
|
||
<tr valign="top"><td><b>ROUTERRULEEXPRESSION</b></td><td> Router rules expressions (integer array) </td></tr>
|
||
<tr valign="top"><td><b>REALBLEN</b></td><td> Real array = BLEN format </td></tr>
|
||
<tr valign="top"><td><b>HASHEDATTRIBUTESNOUNS</b></td><td> Hash word array of attributes and nouns </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">©AVEVA Solutions Ltd 2007</div>
|
||
</div>
|
||
</body>
|
||
</html> |