×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

node/elem set in odb file

node/elem set in odb file

node/elem set in odb file

(OP)
Hi,

In my input file, I clearly defined several node/elem sets.  But when I tried to use Python to retrieve the node/elem sets,  using:

odb.rootAssembly.nodeSets.keys()

I don't get anything -- no node sets that were defined in input file showed up.  What is the reason?  Thanks!

In addition, I tried to use:

region = step1.historyRegions['Node PART-1-1.1000']

to access a sub-portion of the model, but I repeated got error message complaining the keyattribute.  Could you please tell me what is going wrong?  How can I retrieve the history data of just the desired node set?

Thanks very much!

RE: node/elem set in odb file

Besides the rootAssembly , each defined instance may contain nodeSets and nodeElements. This actually depends on the module where you created the sets (assuming that you used CAE to build the model).

You did not mention the way you created the model : by script or by CAE.

You can always check the existence of the sets directly in CAE (Visualization module).

Sometimes CAE slightly modify the names of the sets (and other entities as well) and you can check this using the Keyword editor.

I had once the same problem with accessing history by script though I can remember at this time how I overcame this problem. I think you could use as an alternative
XYData ->XYDataFromHistory(...)

I hope these will help.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

eBook - Functional Prototyping Using Metal 3D Printing
Functional prototypes are a key step in product development – they give engineers a chance to test new ideas and designs while also revealing how the product will stand up to real-world use. And when it comes to functional prototypes, 3D printing is rewriting the rules of what’s possible. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close