API Request: Comprehensive Save
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2004-09-21
08:24 PM
- last edited on
ā2023-08-07
12:16 PM
by
Doreena Deng
ā2004-09-21
08:24 PM
Does anybody have an API that will -- while in Teamwork -- save to the default PLC name, then perform a send/receive? Ideally, I would like it to do another save after the send/receive so I have a local version that contains all other user's changes.
Labels:
- Labels:
-
Add-On (C++)
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2004-09-22 02:09 AM
ā2004-09-22
02:09 AM
Jay wrote:As far as I can tell from scanning the API documentation, it does not seem possible for an add-on to perform a send/receive. An add-on can be notified that a send/receive is happening and take some action at that time, but I don't think the automation that you are asking for is possible.
Does anybody have an API that will -- while in Teamwork -- save to the default PLC name, then perform a send/receive?
I defer to our more experienced API guys though for the definitive answer...
Karl
AC 28 USA and earlier ⢠macOS Sequoia 15.4, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2004-09-22 10:41 AM
ā2004-09-22
10:41 AM
You can use the ACAPI_Automate set of functions (look for APIDo_SaveID ) to achieve that functionality. To tell the truth, I've never tried that in the situation you describe, but theoretically it should work


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2004-09-22 08:29 PM
ā2004-09-22
08:29 PM
Akos wrote:Thanks, Akos. I had read through the various options there and did not see a way of saying that you want a send/receive to take place...?
You can use the ACAPI_Automate set of functions (look forAPIDo_SaveID) to achieve that functionality. To tell the truth, I've never tried that in the situation you describe, but theoretically it should work
Karl
AC 28 USA and earlier ⢠macOS Sequoia 15.4, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2004-09-30 08:45 AM
ā2004-09-30
08:45 AM
Karl wrote:The way to go here is project event notifications. Take a look at for example APINotify_SendChanges -- this is sent *before* the actual 'send' is performed.
Thanks, Akos. I had read through the various options there and did not see a way of saying that you want a send/receive to take place...?
Karl
HTH,
Akos

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2004-09-30 08:28 PM
ā2004-09-30
08:28 PM
Akos wrote:Thanks for being patient with me as always, Akos!
The way to go here is project event notifications. Take a look at for example APINotify_SendChanges -- this is sent *before* the actual 'send' is performed.
AFAIK, the notification is merely a way of having the add-on respond (via a callback function) to when the AC user has performed a send, receive, signout, etc.
Jay's original request was to
Best regards,
Karl
AC 28 USA and earlier ⢠macOS Sequoia 15.4, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2004-10-03 07:31 AM
ā2004-10-03
07:31 AM
Karl wrote:Yes, now I see that seemed to be the original intent. But there is no way to achieve that with the current interface, so he'll have to live with the notifications. It's the poor API developer's world, you know
Jay's original request was toautomatethe actual send/receive ... to have the add-on initiatea send/receive action (not react to the user initiating one). Am I still confused, or is this not possible?
Best regards,
Karl

HTH,
Akos