본문으로 건너뛰기

GetData

Overloads

NameDescription
GetData(int id)Get Metadata
GetData(string path, int id)지정된 VIZ 파일에 아이디(ID)에 해당하는 메타데이터 바이너리 정보 반환

GetData(int id)

public Byte[] GetData(int id)

Get Metadata

Parameters

NameTypeDescription
idintID

Returns

TypeDescription
Byte[]Metadata Stream

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...
}
}

GetData(string path, int id)

public Byte[] GetData(string path, int id)

지정된 VIZ 파일에 아이디(ID)에 해당하는 메타데이터 바이너리 정보 반환

Parameters

NameTypeDescription
pathstringVIZ 파일 경로 (경로 + 파일)
idint메타데이터 아이디(ID)

Returns

TypeDescription
Byte[]VIZ 파일에 아이디(ID)에 해당하는 메타데이터 바이너리 정보 반환