본문으로 건너뛰기

Add

Overloads

NameDescription
Add(int id, string name, Byte[] buffer)Add Metadata

Add(int id, string name, Byte[] buffer)

public bool Add(int id, string name, Byte[] buffer)

Add Metadata

Parameters

NameTypeDescription
idintID
namestringName
bufferByte[]Buffer

Returns

TypeDescription
boolResult

Examples

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;

string path = "C:\\UserData\\ASSEMBLY.dwg";

int id = vizcore3d.Metadata.GetMaxId();
string name = System.IO.Path.GetFileName(path);
byte[] buffer = System.IO.File.ReadAllBytes(path);

bool result = vizcore3d.Metadata.Add(
id /* METADATA ID */
, name /* METADATA NAME */
, buffer /* METADATA BINARY */
);
}