GetMaxId
Overloads
| Name | Description |
|---|---|
| GetMaxId() | Get Max Metadata ID |
GetMaxId()
public int GetMaxId()
Get Max Metadata ID
Returns
| Type | Description |
|---|---|
| int | Max ID |
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 */
);
}