python - how to create a node set
python - how to create a node set
(OP)
Hi guys,
I'm reading the obd file to postprocess an analysis. The point is that, in my python routine, I would like to create a node set that I did not create in the preprocessing. In this way it is much easier when I extract the results from the fieldOutput. How is it possible?
thanks in advance for any advice.
bye bye
I'm reading the obd file to postprocess an analysis. The point is that, in my python routine, I would like to create a node set that I did not create in the preprocessing. In this way it is much easier when I extract the results from the fieldOutput. How is it possible?
thanks in advance for any advice.
bye bye





RE: python - how to create a node set
To create new node set in odb file you can use constructor NodeSet(...) or NodeSetFromLabels(...).
Short example:
We want to create new set with nodes 5,10,12 into instance 'PART-1-1'. Pynthon syntax can be like this:
newSet=(5,10,12)
assembly=odbFile.rootAssembly
assembly.NodeSetFromLabels(name='myNewSet', nodeLabels=(('PART-1-1',newSet),))
Plase take a look into documentation for more details about the constructors.
Best Regards
RE: python - how to create a node set
thanks for your help. With your advice I solved the issue.
Bye bye