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.
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.