Micromine Nexus - if you're here, you've probably heard about it at least once. Long story short, Nexus is going to be the bridge linking products across the Micromine ecosystem. Get used to it! It's going to be your best friend.
With any team using Nexus to synchronize files, ensuring that your data is not being modified by people simultaneously is important. That's why the Nexus Check In/Check Out function was implemented. Here's a link to the Nexus help doc if you want more specific info about the function itself. If you're already familiar with it and want to start including it in your existing macros, here's an example for you. FYI, I'm assuming that you are already familiar with Macros. This tutorial is meant to introduce how you'd insert the Check In/Check Out functions in your process.
Below we have a short macro that completes a simple update of a DHDB linked to an external database via ODBC connection, synchronizes that updated DHDB file with Nexus, then loads a Vizex Saved View containing drillhole layers connected to the updated DHDB. Line 4 in this macro is where the Nexus synchronization occurs.
This is a great little macro - gets the job done and loads up the visuals for confirmation. What if you have colleagues who are actively using the DHDB file and attempt to synchronize their own changes to the DHDB at the same time? You could end up with conflicting data and have to waste time clearing up the issue.
With the Check In/Check Out function, you can avoid that whole situation. Checking Out a file from Nexus will lock it and prevent other users from making changes until it is Checked In again. We have built those steps into the macro forms so you can automate the file security process.
I've inserted the Check Out step in line 2 - at the very beginning of the macro. This means the moment I run the macro, the DHDB file will be checked out and other users won't be able to use it. Then the DHDB is refreshed and synced with Nexus. The Check In step occurs in line 8, after the file has been synchronized. Once this step runs, other users will be able to sync and interact with the DHDB again. You always want to implement these steps in pairs! If you Check Out but never Check In, your colleagues will be unable to interact with the latest (or any) version of this file.
The completed version of the macro now has the primary file update/sync sandwiched between the Check Out and Check In steps. Maintain that method of making Nexus sandwiches and your data will always be correctly updated and maintained by your macros!
Want to learn more?
Online Help Manuals - Click here for the latest version
Learning Management System - Click here to login or here to request access
Comments
0 comments
Please sign in to leave a comment.