Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Oct 7, 2008
Messages
15
Location
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?
 
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
 
thank you very much Guru

you're very kind


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top