Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator 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
May 22, 2010
88
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!
 
Replies continue below

Recommended for you

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()

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor