GetNameIdMap
Overloads
| Name | Description |
|---|---|
| GetNameIdMap() | Get Name/ID Map |
GetNameIdMap()
public Dictionary<string, int> GetNameIdMap()
Get Name/ID Map
Returns
| Type | Description |
|---|---|
| Dictionary<string, int> | Map - Key: Name, Value: ID |
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 : NAME-ID
Dictionary<string, int> data = vizcore3d.Metadata.GetNameIdMap();
foreach (KeyValuePair<string, int> item in data)
{
string name = item.Key;
int id = item.Value;
// Get Metadata Binary
byte[] buffer = vizcore3d.Metadata.GetData(id);
// Some code here...
}
}