Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Locking multiple sessions of the same part


AHarrison1
 Share

Recommended Posts

No, multiple users can open the same network file, work on it and save it 

with no warning that someone else is in the file.

It gets worse.... you can open multiple copies of the same file on your PC, work on both of them and save both of them,

again without warning.

I overwrote a day's work once because I had 2 copies of the same file open.

I opened one copy and started working.. then got called away from my desk.

When I came back, I opened a second copy and worked on it all day.

At the end of the day as I was shutting down my PC I saved the original file overwriting a day's work.

The next morning I opened the file and was shocked to see a day's work gone.

Fortunately, I use the backup utility  and have it set to 10 incremental saves so I was able to recover

my work.

I reported this years ago and was told the fix was two or three releases away,,, but that was in X5.

This is an issue that desperately needs addressing.

 

  • Like 5
Link to comment
Share on other sites

This would be a great feature in mastercam, i agree.

 In case anyone is unaware though there is software out there that specializes in this file security like what you have described, i dont know much about it other than it exists and is available for purchase, i think they call it a vault or PDM software i believe. I have never used one but some of our customers that i deal with use them and its pretty cool because they can do a handful of things like check out and check in files so only one person can work with the file and a bunch of other features to make file storage and letting multiple users work with files without the complications that you have described. If you run into this often it might be worth looking into some of the various PDM software's out on the market. Might be something to look into if you run into these problems often and i am sure a bunch of people on this forum already use one or may have additional details on these systems. 

  • Like 1
Link to comment
Share on other sites

I put about half an hour into the below solution; it's worth about the time I put into it...

  FileLocker.png.256c6cecdcda57a9f4b36707643d7bfe.png

It sets and resets the Windows 'Read-only' attribute of the current Mastercam file.  When you attempt to save a Mastercam file that's has it's 'Read-only' attribute set you get the below error message.

 error.png.1734bb2d62d05437345a7c2ab1cba2a1.png

 

Attached is a .zip archive containing the .dll and .ft files.  Make sure that the .dll is unblocked, then copy it and the .ft file to Mastercam's Chooks folder.  The source can be found on my GitHub.  

FileLocker1_0.zip

  • Like 2
Link to comment
Share on other sites
4 hours ago, Zaffin said:

I put about half an hour into the below solution; it's worth about the time I put into it...

  FileLocker.png.256c6cecdcda57a9f4b36707643d7bfe.png

It sets and resets the Windows 'Read-only' attribute of the current Mastercam file.  When you attempt to save a Mastercam file that's has it's 'Read-only' attribute set you get the below error message.

 error.png.1734bb2d62d05437345a7c2ab1cba2a1.png

 

Attached is a .zip archive containing the .dll and .ft files.  Make sure that the .dll is unblocked, then copy it and the .ft file to Mastercam's Chooks folder.  The source can be found on my GitHub.  

FileLocker1_0.zip

If I may ask? > What version of Mastercam is this for?

Link to comment
Share on other sites
  • 6 months later...
On 12/21/2019 at 1:19 AM, Zaffin_D said:

I used 2020 to develop it, but I think it should work for any version later than 2017. 

It only uses the NET-Hook API to get the current file name and to write to the event log.

All of the NETHook API only stuff I have built has worked on my lowest version x9.

I am unsure about X7-X8

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...