Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
May 22, 2010
Messages
88
Location
US
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
 
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

Back
Top