how to select part.surface in abaqus using python script
<p>How do I select the surfaces on part in Abaqus? I have tried:</p>

<pre><code>tubePart.surface(faces = tubePart.faces[4:8],name = 'innerFaces')
</code></pre>

<p>but it keeps saying part object has no attribute surface.</p>

<p>Ideally, you should create a new surface by calling <code>Surface()</code> function (not <code>surface()</code>), i.e.</p>

<pre><code>tubePart.Surface(...)
</code></pre>

<p>Secondly, there must be <code>side1Faces</code> instead of <code>faces</code> (thanks to agentp for comment). Thus, the final peace of code should look like this:</p>

<pre><code>tubePart.Surface(side1Faces = tubePart.faces[4:8],name = 'innerFaces')
</code></pre>

python abaqus