Display element sets in an odb file in a list
Display element sets in an odb file in a list
(OP)
Hello,
I'm new here and also new in Python.
I'm currently attempting to write a simple plugin for training purposes but I'm stuck at a problem.
I want to list out all element sets in an odb file in a list on a dialog window, similar to the attachment. I have no idea how to have my dialog window list out the element sets.
Below is the code after using RSG builder in ABAQUS.
I want to have the user choose an element set from this list and the plugin will plot history outputs of the elements including some plot manipulation which I will define later on in a kernel function.
I'm new here and also new in Python.
I'm currently attempting to write a simple plugin for training purposes but I'm stuck at a problem.
I want to list out all element sets in an odb file in a list on a dialog window, similar to the attachment. I have no idea how to have my dialog window list out the element sets.
Below is the code after using RSG builder in ABAQUS.
CODE
from rsg.rsgGui import * from abaqusConstants import INTEGER, FLOAT dialogBox = RsgDialog(title='Plot an element set', kernelModule='', kernelFunction='', includeApplyBtn=False, includeSeparator=True, okBtnText='Plot', applyBtnText='Apply', execDir=thisDir) RsgGroupBox(name='GroupBox_1', p='DialogBox', text='Choose element set to plot', layout='0') RsgList(name='List_3', p='GroupBox_1', nvis=8, keyword='ListOfSets', default='', layout='LAYOUT_FILL_X') RsgListItem(p='List_3', text='Item 1') RsgListItem(p='List_3', text='Item 2') RsgListItem(p='List_3', text='Item 3') dialogBox.show()
I want to have the user choose an element set from this list and the plugin will plot history outputs of the elements including some plot manipulation which I will define later on in a kernel function.




