Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access node labels of a node set 1

Status
Not open for further replies.

thepiggy

Mechanical
Oct 7, 2008
15
0
0
IT
guys
if i have defined a set in my model, how do i access the node labels of the nodes belonging to that set through a python script when i access the odb file?
 
Replies continue below

Recommended for you

Hi

lets say 'odb' is the ODB varible, which has an instance called 'PART-1-1', which in turn contains a nodeset called 'TEST', then the following code will give the label of the first entry in the set

odb.rootAssembly.instances['PART-1-1'].nodeSets['TEST'].nodes[0].label


Guru
 
Status
Not open for further replies.
Back
Top