isouto
Structural
- Jan 11, 2022
- 1
Hi,
I have a structure in Abaqus composed by different parts. In order to define connector assignments between elements I need to create Wire features with two nodes, both in the same position but belonging to different parts. in the next script I should be able to find a solution somehow to replace vertices1[3] and vertices2[8] for a more general solution so I do not have to find the nodes 3 and 8.
Thanks in advanced,
modelname = 'Model-1'
assemblyname1 = 'UPRIGHT_2XL31-1'
assemblyname2 = 'CBRA 60402-1'
stepname_initial = 'Initial'
a = mdb.models[modelname].rootAssembly
vertices1 = a.instances[assemblyname1].vertices
vertices2 = a.instances[assemblyname2].vertices
a.WirePolyLine(points=((vertices1[3], vertices2[8]), ), mergeType=IMPRINT, meshable=OFF)
a = mdb.models[modelname].rootAssembly
e1 = a.edges
edges1 = e1[0:1]
a.Set(edges=edges1, name='Wire')
I have a structure in Abaqus composed by different parts. In order to define connector assignments between elements I need to create Wire features with two nodes, both in the same position but belonging to different parts. in the next script I should be able to find a solution somehow to replace vertices1[3] and vertices2[8] for a more general solution so I do not have to find the nodes 3 and 8.
Thanks in advanced,
modelname = 'Model-1'
assemblyname1 = 'UPRIGHT_2XL31-1'
assemblyname2 = 'CBRA 60402-1'
stepname_initial = 'Initial'
a = mdb.models[modelname].rootAssembly
vertices1 = a.instances[assemblyname1].vertices
vertices2 = a.instances[assemblyname2].vertices
a.WirePolyLine(points=((vertices1[3], vertices2[8]), ), mergeType=IMPRINT, meshable=OFF)
a = mdb.models[modelname].rootAssembly
e1 = a.edges
edges1 = e1[0:1]
a.Set(edges=edges1, name='Wire')