【技術分享】【C#】刪除對象

琛
帖子
14
14
精華
1
1
積分
154
154
建模
技術分享
/// <summary>
/// 刪除對象
/// </summary>
/// <param name="objects"></param>
private void DeleteNxObject(NXObject[] objects)
{
NXOpen.Session.UndoMarkId markId = theSession.SetUndoMark(NXOpen.Session.MarkVisibility.Visible, "Delete");
int nErrs1 = theSession.UpdateManager.AddToDeleteList(objects);
int nErrs2 = theSession.UpdateManager.DoUpdate(markId);
}
登錄論壇用戶后可查看全部內容
1048
0
2024-01-05 16:30:33
by f3dexpress Nico
請選擇移動至版塊:
確認移動
回復加入討論