GetIdNameMap
Overloads
| Name | Description |
|---|---|
| GetIdNameMap() | Get ID/Name Map |
| GetIdNameMap(string path) | Get ID/Name Map |
GetIdNameMap()
public Dictionary<int, string> GetIdNameMap()
Get ID/Name Map
Returns
| Type | Description |
|---|---|
| Dictionary<int, string> | Map - Key: ID, Value: Name |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
// Count
int count = vizcore3d.Metadata.Count;
// Map : ID-NAME
Dictionary<int, string> data = vizcore3d.Metadata.GetIdNameMap();
foreach (KeyValuePair<int, string> item in data)
{
int id = item.Key;
string name = item.Value;
// Get Metadata Binary
byte[] buffer = vizcore3d.Metadata.GetData(id);
// Some code here...
}
}
GetIdNameMap(string path)
public Dictionary<int, string> GetIdNameMap(string path)
Get ID/Name Map
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | VIZ 파일 경로 (경로 + 파일) |
Returns
| Type | Description |
|---|---|
| Dictionary<int, string> | Map - Key: ID, Value: Name |