Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Create assembly level element set

Status
Not open for further replies.

Settler

Structural
May 22, 2010
88
Hello all,

I've been trying to create an assembly level element set in Python. The closest I've been to it is with the following code.

Python:
mdb.models[Modelname].rootAssembly.Set(elements=mdb.models[Modelname].rootAssembly.instances['Rubber-1'].elements.getFromLabel(('Rubber-1',(12)), ('Rubber-1',(23)),),name='neop')

However, I get the error that "TypeError: arg1; found tuple, expecting int"

Any idea of how to create the set named "neop" with those two elements?

Thanks
 
Replies continue below

Recommended for you

This is how much closer I got to having it done, still getting error. Different this time. -> "Feature creation failed."

Python:
mdb.models[Modelname].rootAssembly.Set(name='Neop', elements=(mdb.models[Modelname].rootAssembly.instances['Rubber-1'].elements[12],))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor