×
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!
  • Students Click Here

*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

Jobs

Detecting model changes in Abaqus/CAE

Detecting model changes in Abaqus/CAE

Detecting model changes in Abaqus/CAE

(OP)
I'm new to Eng-Tips, so I apologize if this question doesn't completely fit in this forum. Any redirection to a more appropriate site would be greatly appreciated.

I'm working on an add-in for Abaqus/CAE using the Python interface, and I need my software to detect when changes to the model occur (mesh entities created/edited, properties changed, etc.). It would be preferable to detect what changes happened, but I at least need to know when any change takes place. Does anyone know of a method for doing this? I've thought of a few possible routes:
  • Periodically check the model for changes (won't work for larger models given the time and memory required to compare everything)
  • Detect GUI commands being sent from the UI to the kernel (would also need to know when the kernel is done processing that command to make this useful, but this would be a start)
  • Use something similar to event callbacks to detect model changes after kernel operations take place (this worked really well for another software package, but it was using a different API and programming language)
Is there anything that provides the functionality described in my last bullet in either Abaqus' GUI Toolkit or the FOX Toolkit itself? So far, I've realized that they're probably not called "callbacks" in this context...

I've been using Python for several years creating plugins for Abaqus/CAE and Viewer, but this is my first foray into the interactive side of things. I've tried Googling to find what I need, but I can't seem to figure out the right words to use in the search (Python and FOX seem to use different terminology than I'm used to from my past experience in TCL).

Any help would be tremendously appreciated (even if it's the right terminology to search for). Thanks in advance!

RE: Detecting model changes in Abaqus/CAE

Why don't you monitor the .rpy or .rec for changes?

RE: Detecting model changes in Abaqus/CAE

(OP)
**Forehead slap**

My friend, that is a very good suggestion. I guess I've been staring at this problem for too long, I couldn't see the forest through the trees! That should work well to determine when changes occur (and to have an idea as to what changes they were), and it probably won't be a stretch to figure out from that exactly what data was created/modified/deleted as a result of that command.

Thank you for very much for your help, Mustaine3.

Does anyone else have any other ideas?

RE: Detecting model changes in Abaqus/CAE

(OP)
I've found in the Abaqus GUI Toolkit users manual that you can register a function with each object repository that is called whenever an object in the repository is created/edited/renamed/deleted. This is done using the .registerQuery function on the repository in question. Now, I'm off to see if I understand that correctly and if I can get it working.

I will update if I learn anything more. Thanks again for your help!

RE: Detecting model changes in Abaqus/CAE

The *.rpy as mustain3 has already mentioned.

If you want to check changes only after a file is saved then the *.jnl files are probably less volatile.

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!


Resources