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!

Find nearest node and define it as a set with python

Status
Not open for further replies.

Settler

Structural
Joined
May 22, 2010
Messages
88
Location
US
Hello all,

I want to define a set with a node with python. As I'm willing to conduct parametric studies the position of this set will always be changing.

I have tried the following

mdb.models[Modelname].rootAssembly.Set(name='Set-3', nodes= mdb.models[Modelname].rootAssembly.instances['Cover-2'].nodes.findAt((((L/2), (2*t_cover+(N-1)*(t_steel+t_int)+t_steel), (W/2) ), )))

but I'm getting this as an error.

'MeshNodeArray' object has no attribute 'findAt'

Anybody might have an idea of how to do it or how to solve it?

Thanks!
 
It looks like the findAt method is only for geometry objects(vertices, edges, faces, cells) and is not implemented for nodes. You can try these instead:

getByBoundingBox()
getByBoundingCylinder()
getByBoundingSphere()

 
Thanks a lot. It worked. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top