본문으로 건너뛰기

UpdateKey

Overloads​

NameDescription
UpdateKey(int entityId, int index, string category, string oldKey, string newKey)지정된 개체의 속성 키값을 변경
UpdateKey(string category, string oldKey, string newKey)선택된 개체의 속성 키값을 변경

UpdateKey(int entityId, int index, string category, string oldKey, string newKey)​

public void UpdateKey(int entityId, int index, string category, string oldKey, string newKey)

지정된 개체의 속성 키값을 변경

Parameters​

NameTypeDescription
entityIdint노드 Entity ID
indexint노드 인덱스
categorystring카테고리
oldKeystring이전 키값
newKeystring신규 키값

Examples​

// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;

public void Example()
{
List<VIZCore3DX.NET.Data.Node> nodes =
vizcore3dx.Object3D.FromFilter(VIZCore3DX.NET.Data.Object3dFilter.SELECTED_TOP);
if (nodes.Count == 0) return;

vizcore3dx.Object3D.UDA.UpdateKey(
nodes[0].EntityID
, nodes[0].Index
, "General"
, "TYPE" /* 이전 키값 */
, "ITEM_TYPE" /* 신규 키값 */
);
}

UpdateKey(string category, string oldKey, string newKey)​

public void UpdateKey(string category, string oldKey, string newKey)

선택된 개체의 속성 키값을 변경

Parameters​

NameTypeDescription
categorystring카테고리
oldKeystring이전 키값
newKeystring신규 키값

Examples​

// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;

public void Example()
{
// 선택된 개체가 대상이므로, 먼저 대상을 선택합니다.
List<VIZCore3DX.NET.Data.Node> nodes =
vizcore3dx.Object3D.UDA.GetCategoryNameNodes("General", "TYPE", true);
if (nodes.Count == 0) return;

vizcore3dx.Object3D.Select(nodes, true);

// 값은 그대로 두고 키 이름만 변경합니다.
vizcore3dx.Object3D.UDA.UpdateKey("General", "TYPE", "ITEM_TYPE");
}