Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display element sets in an odb file in a list

Status
Not open for further replies.

kelvinlym

Automotive
Jul 9, 2015
2
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.

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.
 
 http://files.engineering.com/getfile.aspx?folder=fcde2391-8ee7-4c60-909c-99afb8bc9794&file=listview.PNG
Status
Not open for further replies.

Part and Inventory Search

Sponsor