GetNodesFromUDAKey
public List<Node> GetNodesFromUDAKey(string key, UInt32? depth, bool isKeyDefined, bool isVisible, bool assemblyOnly)
Get Nodes from UDA Key
Remarks
조회 대상은 General 분류의 속성으로 고정됩니다. isVisible이 false이면 숨긴 개체를 포함한 전체를 조회하며,
숨긴 개체만 조회하려면 FromFilter에 HIDDEN_NODE를 사용합니다.
Parameters
| Name | Type | Description |
|---|---|---|
| key | string | UDA Key |
| depth | uint? | Node Depth |
| isKeyDefined | bool | UDA Key Defined true or false |
| isVisible | bool | true : 보이는 개체만 조회, false : 표시 여부와 무관하게 조회 |
| assemblyOnly | bool | Assembly or Assembly, Part, Body |
Returns
| Type | Description |
|---|---|
| List<Node> | Node List |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
public void Example()
{
// 속성(STATUS)이 누락된 개체를 찾아 빨간색으로 표시합니다.
if (vizcore3dx.Model.IsOpen() == false) return;
List<VIZCore3DX.NET.Data.Node> nodes = vizcore3dx.Object3D.GetNodesFromUDAKey(
"STATUS" /* 속성 이름 */
, null /* Depth 제한 없음 */
, false /* false : 속성이 정의되지 않은 노드 */
, true /* 보이는 개체만 */
);
if (nodes.Count == 0) return;
vizcore3dx.Object3D.Color.SetColor(nodes, System.Drawing.Color.Red);
}