Click or drag to resize

MetadataManagerGetName Method (Int32)

Get Metadata Name

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public string GetName(
	int id
)

Parameters

id
Type: SystemInt32
ID

Return Value

Type: String
Metadata Name
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

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

    int id = 43;

    string name_old = "BOM.xls";
    string name_new = "BLOCK_DIVISION.xls";

    if (vizcore3d.Metadata.Exist(id) == false) return;

    string name = vizcore3d.Metadata.GetName(id);

    if (name != name_old) return;

    bool result = vizcore3d.Metadata.SetName(id, name_new);
}
See Also