Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations dmapguru 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
Joined
Mar 9, 2016
Messages
1
Location
CN
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.
 
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

Back
Top