I have some material imported already and I can delete them in Mechanical GUI but I am curious if there is a script to delete it directly in Mechanical without using any ANsys Workbench shell or code
def DeleteObject(obj): try: ID = obj.ObjectId except: ID = obj.InternalObject.ID JScmds = 'DS.Tree.DeleteObject({})'.format(ID) ExtAPI.Application.ScriptByName("jscript").ExecuteCommand(JScmds)
Thank you so much @Landon Mitchell Kanner
Super helpful feedback.