DJStatics
Marine/Ocean
- Sep 22, 2021
- 14
Hi there,
I am using the statement getByBoundingBox() in my Python script to select vertices or nodes in my part. I am looking for a method of selecting vertices and nodes which are located on a specific set of faces/surfaces. I have created sets of faces in my part. At the moment I can only select all the objects of my part within the selection box I specify with getByBoundingBox(). Is there a statement I can add to my code to have getByBoundingBox() select from a single specified set? Or perhaps a different selection method? I use getByBoundingBox() to automatically select objects in certain areas of my part.
Lines I currently use together with getByBoundingBox():
p = mdb.models['model_name'].parts['part_name']
v = p.vertices
SelectedVertices = v.getByBoundingBox(xmin,ymin,zmin,xmax,ymax,zmax)
I am using the statement getByBoundingBox() in my Python script to select vertices or nodes in my part. I am looking for a method of selecting vertices and nodes which are located on a specific set of faces/surfaces. I have created sets of faces in my part. At the moment I can only select all the objects of my part within the selection box I specify with getByBoundingBox(). Is there a statement I can add to my code to have getByBoundingBox() select from a single specified set? Or perhaps a different selection method? I use getByBoundingBox() to automatically select objects in certain areas of my part.
Lines I currently use together with getByBoundingBox():
p = mdb.models['model_name'].parts['part_name']
v = p.vertices
SelectedVertices = v.getByBoundingBox(xmin,ymin,zmin,xmax,ymax,zmax)