Thank you for helping. Yes. I performed an update after the delete. My code looks exactly what you're suggesting above. I also tried a manual part clean up and UG is still not deleting the unused expressions. It's weird. Because when I try to manually delete the expression in the editor...
I've found this snippet of code for cleaning the part. But can't get it to work. any ideas?
Dim partCleanup1 As PartCleanup
partCleanup1 = theSession.NewPartCleanup()
partCleanup1.TurnOffHighlighting = True
partCleanup1.DeleteUnusedObjects = True...
I am using the NXOpen function AddToDeleteList to delete feature construction geometry. This function works well and deletes the construction geometry; however, it is not deleting the expressions associated with these deleted features. After running the NXOpen routine, the expressions within...