Is it possible to delete an imported material using script?
Collins
Member Posts: 24
**
in Structures
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
Tagged:
0
Answers
-
def DeleteObject(obj): try: ID = obj.ObjectId except: ID = obj.InternalObject.ID JScmds = 'DS.Tree.DeleteObject({})'.format(ID) ExtAPI.Application.ScriptByName("jscript").ExecuteCommand(JScmds)
1 -
Thank you so much @Landon Mitchell Kanner
Super helpful feedback.
0