GetPlacedSymbolName
public string GetPlacedSymbolName(int instanceIndex)
배치된 Symbol 인스턴스의 정의 이름 반환.
Remarks
반환 이름은 AddResource 로 로드한 Symbol 정의의 이름(= AddSymbolAtPosition 에 넘긴 name).
잘못된 index/미배치 시 빈 문자열 반환. 종류(group) 가 필요하면 GetPlacedSymbolGroup 사용.
Parameters
| Name | Type | Description |
|---|---|---|
| instanceIndex | int | 배치 인스턴스 인덱스 (0 .. GetPlacedSymbolCount()-1) |
Returns
| Type | Description |
|---|---|
| string | 정의 이름. 없으면 빈 문자열. |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
// [전제] 화면에 배치된 Symbol 이 1개 이상 필요(정의 로드 + 배치 선행). 없으면(0) 중단.
if (vizcore3d.Review.Symbol.GetPlacedSymbolCount() == 0) return;
string name = vizcore3d.Review.Symbol.GetPlacedSymbolName(0);
System.Diagnostics.Trace.WriteLine("첫 배치 Symbol 정의 이름 = " + name);
}