Dhananjay @Mastercam India

Post Text Editing Via. CD Manager Not work .

Recommended Posts

Hello Everyone, 

When I edit the text in the CD manager to tailor the mastercam interface.

the string is not reflected in the Post Text Section in.PST file. After some time it will automatically Omit from CD manager. 

is there any solution? 

 

2020-05-12_1436.png

 

2020-05-12_1438.png

Share this post


Link to post
Share on other sites

Not sure if it's still this way, but I used to have to open the CD thru the MD. If I opened the CD directly, my changes didn't stick.

  • Like 1

Share this post


Link to post
Share on other sites

You can edit the control text directly in the .pst file without even opening the machine or control definition.

After you do this, be sure to reload the machine definition. this will reload the control text into the toolpath parameters and make it visible on the Misc real/int page.

One other thing that can cause issues with the control text is the windows language. The windows language code contains a language and a region. Your control text is set as en-IN. If your windows language does not match the language in the control text then some versions of Mastercam will not recognize the control text.

In MC 2020 or later, I always deliver post with en-US as the language. Mastercam 2020 fixed this language compatibility issues by allowing it to always read in en-US if the windows language is not found.

Share this post


Link to post
Share on other sites
1 hour ago, Alex Dales said:

You can edit the control text directly in the .pst file without even opening the machine or control definition.

I thought we weren't supposed to do this, since they changed to the xml format.

Share this post


Link to post
Share on other sites
3 hours ago, So not a Guru said:

I thought we weren't supposed to do this, since they changed to the xml format.

I haven't run into any issues when I have changed it as long as I have kept the .xml structure intact. Maybe I will have to look into this though

  • Like 1

Share this post


Link to post
Share on other sites
15 hours ago, Alex Dales said:

You can edit the control text directly in the .pst file without even opening the machine or control definition.

After you do this, be sure to reload the machine definition. this will reload the control text into the toolpath parameters and make it visible on the Misc real/int page.

One other thing that can cause issues with the control text is the windows language. The windows language code contains a language and a region. Your control text is set as en-IN. If your windows language does not match the language in the control text then some versions of Mastercam will not recognize the control text.

In MC 2020 or later, I always deliver post with en-US as the language. Mastercam 2020 fixed this language compatibility issues by allowing it to always read in en-US if the windows language is not found.

Thank you Alex 

  • Like 1

Share this post


Link to post
Share on other sites
20 hours ago, So not a Guru said:

I thought we weren't supposed to do this, since they changed to the xml format.

Alex hit on it..

As long as you maintain the xml formatting, editing in the post is fine...break that though and it could be a headache. 

  • Thanks 1

Share this post


Link to post
Share on other sites
1 hour ago, JParis said:

Alex hit on it..

As long as you maintain the xml formatting, editing in the post is fine...break that though and it could be a headache. 

XML requires certain characters to be escaped, try putting an ampersand(&) in a text tag and watch the post text default to system text.  If you add an ampersand thru the CD it will be escaped correctly.

The post and post text also must be encoded in UTF-8, in the unlikely case the editor used to edit the post doesn't support UTF-8 (some people still use PFE) and you venture outside the ASCII range the post text will also blow up.

Editing through the CD eliminates both problems.

@Sushant Singh, ask your reseller for a copy of the Working with machine and control definitions  MP application guide, it goes over everything in great detail.

 

  • Like 2

Share this post


Link to post
Share on other sites
1 hour ago, JParis said:

Alex hit on it..

As long as you maintain the xml formatting, editing in the post is fine...break that though and it could be a headache. 

I tore up a half dozen post before I realized I needed to do it a certain way. I keep backups so just some lost time, but yes back before 2020 is was not something I did in the post I always did it through the MMD/CMD process.

  • Like 1

Share this post


Link to post
Share on other sites
13 hours ago, Zaffin_D said:

XML requires certain characters to be escaped, try putting an ampersand(&) in a text tag and watch the post text default to system text.  If you add an ampersand thru the CD it will be escaped correctly.

The post and post text also must be encoded in UTF-8, in the unlikely case the editor used to edit the post doesn't support UTF-8 (some people still use PFE) and you venture outside the ASCII range the post text will also blow up.

Editing through the CD eliminates both problems.

Thanks for the Info on this!

I do all my post edits in Notepad++ and have yet to run into any of these issues. 

I will keep an eye out and see if I can break it when I have some free time.

Share this post


Link to post
Share on other sites

You cannot have the Post File open in your Text Editor, when you edit the Post Text through the CD Manager. You likely just had the file open, so the CD couldn't save the edits you made.

Share this post


Link to post
Share on other sites
19 hours ago, Zaffin_D said:

XML requires certain characters to be escaped, try putting an ampersand(&) in a text tag and watch the post text default to system text.  If you add an ampersand thru the CD it will be escaped correctly.

The post and post text also must be encoded in UTF-8, in the unlikely case the editor used to edit the post doesn't support UTF-8 (some people still use PFE) and you venture outside the ASCII range the post text will also blow up.

Editing through the CD eliminates both problems.

@Sushant Singh, ask your reseller for a copy of the Working with machine and control definitions  MP application guide, it goes over everything in great detail.

 

Yes, I have that Document.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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