GetNodes
Overloads
| Name | Description |
|---|---|
| GetNodes(string key, string val) | 속성에 해당하는 노드 정보 반환 |
| GetNodes(string key, string val, bool valueFullMatch) | 속성에 해당하는 노드 정보 반환 |
| GetNodes(string key, string val, List<Node> nodes, bool contain) | 지정된 노드에서 특정 UDA 정보가 포함(미포함)되는 노드 반환 |
GetNodes(string key, string val)
public List<Node> GetNodes(string key, string val)
속성에 해당하는 노드 정보 반환
Parameters
| Name | Type | Description |
|---|---|---|
| key | string | 속성 KEY |
| val | string | 속성 VALUE |
Returns
| Type | Description |
|---|---|
| List<Node> | 노드 목록 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
List<Data.Node> items = vizcore3d.Object3D.UDA.GetNodes("TYPE", "HPANEL");
List<int> parts = new List<int>();
foreach (Data.Node item in items)
{
if (item.Kind != Data.NodeKind.PART) continue;
parts.Add(item.Index);
}
vizcore3d.BeginUpdate();
vizcore3d.Model.UncheckToUnload = false;
vizcore3d.Object3D.Show(Data.Object3DKind.ALL, false);
vizcore3d.Object3D.Show(parts, true);
vizcore3d.EndUpdate();
}
GetNodes(string key, string val, bool valueFullMatch)
public List<Node> GetNodes(string key, string val, bool valueFullMatch)
속성에 해당하는 노드 정보 반환
Parameters
| Name | Type | Description |
|---|---|---|
| key | string | 속성 KEY |
| val | string | 속성 VALUE |
| valueFullMatch | bool | 속성 VALUE FullMatch |
Returns
| Type | Description |
|---|---|
| List<Node> | 노드 목록 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
List<Data.Node> items = vizcore3d.Object3D.UDA.GetNodes("TYPE", "HPANEL");
List<int> parts = new List<int>();
foreach (Data.Node item in items)
{
if (item.Kind != Data.NodeKind.PART) continue;
parts.Add(item.Index);
}
vizcore3d.BeginUpdate();
vizcore3d.Model.UncheckToUnload = false;
vizcore3d.Object3D.Show(Data.Object3DKind.ALL, false);
vizcore3d.Object3D.Show(parts, true);
vizcore3d.EndUpdate();
}
GetNodes(string key, string val, List<Node> nodes, bool contain)
public List<Node> GetNodes(string key, string val, List<Node> nodes, bool contain)
지정된 노드에서 특정 UDA 정보가 포함(미포함)되는 노드 반환
Parameters
| Name | Type | Description |
|---|---|---|
| key | string | 속성 KEY |
| val | string | 속성 VALUE |
| nodes | List<Node> | 노드 목록 |
| contain | bool | 포함/미포함 : True (KEY/VALUE가 포함되어 있는 노드 반환) / False (KEY/VALUE가 포함되지 않는 노드 반환) |
Returns
| Type | Description |
|---|---|
| List<Node> | 속성이 포함(미포함)된 노드 목록 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
// 대분류 - TYPE : PIPE
List<VIZCore3D.NET.Data.Node> pipe =
vizcore3d.Object3D.UDA.GetNodes(
"TYPE" /* KEY */
, "PIPE" /* VALUE */
);
// 상세분류 - SERVICE : BILGE & GENERAL SERVICE LINE
List<VIZCore3D.NET.Data.Node> service =
vizcore3d.Object3D.UDA.GetNodes(
"SERVICE" /* KEY */
, "BILGE & GENERAL SERVICE LINE" /* VALUE */
, pipe /* 검색 대상 노드 */
, true /* 포함(미포함) */
);
}