Add
Overloads
| Name | Description |
|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| id | int | ID |
| name | string | Name |
| buffer | Byte[] | Buffer |
Returns
| Type | Description |
|---|---|
| bool | Result |
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 */
);
}