GetName
Overloads
| Name | Description |
|---|---|
| GetName(int id) | Get Metadata Name |
| GetName(string path, int id) | 지정된 VIZ 파일에 아이디(ID)에 해당하는 메타데이터의 이름 반환 |
GetName(int id)
public string GetName(int id)
Get Metadata Name
Parameters
| Name | Type | Description |
|---|---|---|
| id | int | ID |
Returns
| Type | Description |
|---|---|
| string | Metadata Name |
Examples
// 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);
}
GetName(string path, int id)
public string GetName(string path, int id)
지정된 VIZ 파일에 아이디(ID)에 해당하는 메타데이터의 이름 반환
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | VIZ 파일 경로 (경로 + 파일) |
| id | int | 메타데이터 아이디(ID) |
Returns
| Type | Description |
|---|---|
| string | 메타데이터의 이름 |