skr3178
Mechanical
- Sep 5, 2020
- 34
Hello,
Goal is develop a script to create wire from edges-selecting all the edges.
Used macro recorder and then using the .jnl file as reference for the scripting.
.jnl shows the following line for the command >create wire by selecting all edges:
e = p.edges
p.WireFromEdge(edgeList=(e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8],
e[9], e[10],..... e[210]))
I have tried to replace it with:
p.WireFromEdge(edgeList=(mdb.models['Model-1'].parts['Circular_knit - 2, 3, 9'].edges))
which gives me the error found edgeArray, expecting tuple
I have therefore modified my code as
p.WireFromEdge(edgeList=tuple(','.join((['e[' + str(i) + ']' for i in range(a)]))))
which then for some reason shuts the abaqus CAE.
I would appreciate any ideas/codes which can allow me to select all the edges in my model.
Goal is develop a script to create wire from edges-selecting all the edges.
Used macro recorder and then using the .jnl file as reference for the scripting.
.jnl shows the following line for the command >create wire by selecting all edges:
e = p.edges
p.WireFromEdge(edgeList=(e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8],
e[9], e[10],..... e[210]))
I have tried to replace it with:
p.WireFromEdge(edgeList=(mdb.models['Model-1'].parts['Circular_knit - 2, 3, 9'].edges))
which gives me the error found edgeArray, expecting tuple
I have therefore modified my code as
p.WireFromEdge(edgeList=tuple(','.join((['e[' + str(i) + ']' for i in range(a)]))))
which then for some reason shuts the abaqus CAE.
I would appreciate any ideas/codes which can allow me to select all the edges in my model.