| MetadataManagerGetNameIdMap Method |
Get Name/ID Map
Namespace: VIZCore3D.NET.ManagerAssembly: VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.910 (2.8.24.910)
Syntax public Dictionary<string, int> GetNameIdMap()
Return Value
DictionaryString,
Int32Map - Key: Name, Value: ID
Example
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
int count = vizcore3d.Metadata.Count;
Dictionary<string, int> data = vizcore3d.Metadata.GetNameIdMap();
foreach (KeyValuePair<string, int> item in data)
{
string name = item.Key;
int id = item.Value;
byte[] buffer = vizcore3d.Metadata.GetData(id);
}
}
See Also