03-15-2017 03:57 AM
How can I delete an item?
when i use ITEM_delete_item it says that the item is referenced
03-15-2017 04:55 AM
If item is referenced or used in any structure (assembly), you will not be able to delete it until you remove the references where it is used. Not sure about it with DBA role.
Regards,
Ganesh
#IngenuityIsNX | NX - What's New
03-15-2017 04:57 AM
I deleted the item revision and When I try to delete the item itself I get the error message saying"The instance is referenced"
03-15-2017 06:08 AM
03-15-2017 01:08 PM
I assume you've used POM_referencers_of_instance ITK function before ITEM_delete_item. what are the referenced classes listed by POM_referencers_of_instance?
Harish
03-15-2017 01:36 PM
you can check referenced item in My Teamcenter as Analysis tab by double clicking on the item and find out in which assembly it is used, once you removed the reference from that structure or assembly, then you can delete an item from TC.
03-16-2017 02:59 AM
Yeah, How do I find out the instances and delete it?
03-17-2017 05:47 AM - edited 03-17-2017 05:47 AM
Select the item revision and check "where referenced" in Impact Analysis tab for all level,
and then you delete those references, after that you can delete that Item easily.
Hope this will help you,
03-17-2017 06:05 AM
I want to do the same thing using ITK functions
03-17-2017 09:51 AM
Be careful how you word your solution/suggestion...
".....then you delete those references....."
You don't want to delete those references, you would need to delete how the item is referenced (as appropriate):
Programatically you would use WSOM_where_referenced function and then loop through those references and "clean" those references as appropriate.