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!

how to access the instance's vertices of a wire by python

Status
Not open for further replies.

laoyanwei

New member
Mar 9, 2016
1
I use the abaqus python to create a wire in Interaction Module, sth like this:

mdb.models['Model-1'].rootAssembly.WirePolyLine(mergeWire=OFF, meshable=OFF, points=((mdb.models['Model-1'].rootAssembly.instances['I'].vertices[10], mdb.models['Model-1'].rootAssembly.instances['I'].vertices[11]), ))

mdb.models['Model-1'].rootAssembly.Set(edges= mdb.models['Model-1'].rootAssembly.edges.getSequenceFromMask(('[#1 ]', ), ) , name='Wire-1-Set-1')

then a feature + an edge is created correctly.

And the two vertices for creating this wire are instance's vertices. But when I use the python function Edge.getVertices, it only returns rootAssembly's vertices ID instead of Instance's vertices.

So how to get the instance's vertices.
 
Replies continue below

Recommended for you

Instances are not created in the Interaction module. Instances are created in the Assembly module from Parts.
You are creating just features in the assembly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor