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:

Machine and Control Definition Formats


Recommended Posts

What exactly are you thinking of changing?

 

I would want to be able to change the location of machine, control definitions, and posts with a utility so it's faster and more automatic. It would also make it easier to quickly check for issues in a setup in case something isn't linked properly. I would have to make sure Mastercam is closed, and make a backup of the file first for safety of course.

 

Looking in the file, I can find where these are declared: "%MCAMDIR%wire\posts\Agie Generic Agievision_AWF 4X Wire.pst". I guess trial and error might be my best option for now. I haven't looked into NETHooks or CHooks for doing this yet.

Link to comment
Share on other sites
change the location of machine, control definitions, and posts with a utility

Do you know about -> MD_CD_PST Rename ?

*It allows you to rename, not re-locate.

Available here nder AddOns,

 

 

Forget about doing this NETHook.

I don’t see that type of functionally ever being added to the NETHook API.

Way too much of an edge case.

 

%MCAMDIR% is a path “token”.

 

If a prefix of a path "aligns" with a standard Mastercam location, it is "tokenized" (like the path you show).

Say this was the location on your system ->

C:\Users\Public\Documents\shared mcamx7\wire\posts\Agie Generic Agievision_AWF 4X Wire.pst

With the tokenized path, if I load your part file on my system and my system it's location is ->

D:\Users\Public\Documents\shared mcamx7\wire\posts\Agie Generic Agievision_AWF 4X Wire.pst

Mastercam on my system will resolve the %MCAMDIR% token in that path to D:\Users\Public\Documents\shared mcamx7

 

In the CHook SDK, see the functions for dealing with tokens here ->

INTERFACE\GUI\FilesAndPaths_CH.h

 

*It boils sown to this –

What I think you’re talking is not a trivial task.

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...