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:

Changing text in a dialog box (X2)


Code_Breaker
 Share

Recommended Posts

I did this in v9, but can't find it for X2 ...

 

For example, when using a drill, under "cycle", the choices are "Drill/Cbore", "Peck drill", "chip break", "tap", etc.

 

I like to change them to "G81-Spot drill", "G83 - Peck drill", etc.

 

What is the name of the file and where is it located?

 

Thanks

Link to comment
Share on other sites

Try it from right inside of the post, down the bottom, the control def section.

 

Then replace the machine def in your file and you should see the update.

Link to comment
Share on other sites

Don,

 

There should be a section at the bottom of the post that looks similar to this.

 

code:

# --------------------------------------------------------------------------

# POST TEXT

# --------------------------------------------------------------------------

[CTRL_MILL|YCM 4X MILL]

[misc integers]

1. "Work Coordinates [0-1=G92, 2=G54's]"//2

2. "Absolute/Incremental, top level [0=ABS, 1=INC]"

3. "Reference Return [0=G28, 1=G30]"

[simple drill]

1. "Drill/Counterbore"

7. ""

8. ""

9. ""

10. ""

11. ""

[peck drill]

3. ""

7. "Peck"

8. ""

9. ""

10. ""

11. ""

[chip break]

3. ""

7. "Peck"

8. ""

9. ""

10. ""

11. ""

[tap]

3. ""

7. ""

8. ""

9. ""

10. ""

11. ""

[bore1]

1. "Bore #1 (feed-out)"

7. ""

8. ""

9. ""

10. ""

11. ""

[bore2]

1. "Bore #2 (stop spindle, rapid out)"

3. ""

7. ""

8. ""

9. ""

10. ""

11. ""

[misc1]

1. "Fine Bore (shift)"

7. ""

8. ""

9. ""

10. ""

[misc2]

1. "Rigid Tapping Cycle"

3. ""

7. ""

8. ""

9. ""

10. ""

11. ""

[drill cycle descriptions]

7. "Fine bore (shift)"

8. "Rigid Tapping Cycle"

[canned text]

1. "Stop"

2. "Ostop"

3. "Bld on"

4. "bLd off"

5. "M5"

6. "M6"

7. "M7"

8. "M8"

9. "M9"

10. "M10"

[CTRL_TEXT_END]

If not then I am pretty sure that was a V9 post that was updated but when it was the associated .txt file was not in the same folder.

 

You may need to consider adding a generic one and editing to your needs or maybe it is time for a newer post.

Link to comment
Share on other sites

Yes, it was updated from v9 ... Can I just cut and paste your code? Also, where does it get this info if not in the post?

 

Tons on changes from a generic post ...

 

Is there anything else missing when upgrading from v9 to X2 (or higher)? Maybe,

"What's new in posts"?

Link to comment
Share on other sites

John,

 

I copied your CODE but it did not do anything ...

 

I tried the CODE from MPmaster and nothing ...

 

Jim,

 

The places you are speaking about doesn't address my issues, except where the TABS are concerned (see my earlier post)

 

 

Roger,

 

I am not sure what you are referring to ...

 

still looking for an answer (if there is one) ...

Link to comment
Share on other sites

Hi, couple of comments --

 

First, copying and pasting code from another post is almost guaranteed not to work -- the "header" (in this case, "[CTRL_MILL|YCM 4X MILL]") at the beginning of the section is keyed to the name of the control definition, so unless it matches what's in your part file Mastercam won't even look at it.

 

Instead of Settings > Control Definition Manager, try Settings > Machine Definition Manager. Then select the Control Definition Manager button on the MDM toolbar, and make the changes to your text pages. Then when you close everything out and save it, Mastercam will ask you if you want to replace the machine definition in your machine group. Click Yes and you should see your changes. It's this part about "replacing" the machine and control def that you might be missing. I can explain why it works that way, but that would be another post...

 

Second, make sure that your part is using the control definition and post that you think it's using. In the Toolpath Manager, click the Machine Group > Properties > Files icon and it will list exactly which files and path are being referenced by your part.

 

Third, if you're using X2, go to the Documentation folder and open the file McamX2_Post_Parameter_Ref.pdf (if that's not the *exact* file name, it's pretty close...). There is an extensive "What's New" section that covers all the post changes from V9 to X2.

 

HTH,

Robert

Link to comment
Share on other sites

Thanks Robert, biggrin.gif

 

quote:

First, copying and pasting code from another post ...

Knew that and made the changes ... did not make the changes I was looking for

 

quote:

Instead of Settings > Control Definition Manager, try ...

I was doing it the way you suggest ... still did not work ...

 

quote:

Second, make sure that your part is using the control definition

Did that ...

 

quote:

Third, if you're using X2, go to the Documentation folder ...

I will do this ... thanks biggrin.gifbiggrin.gif

 

I will continue looking for a solution ...

 

cheers.gif

Link to comment
Share on other sites

Don,

 

If you want, zip up your machine & control defs and the post I will get everything all synced up and if you want to let me know what changes you need I'll make them for you as well.

Link to comment
Share on other sites

"If there is only ONE header, and it is named "[CTRL_MILL|DEFAULT]", will that info ALWAYS be used?"

 

The header name has two parts : the first is the machine type ("CTRL_MILL" -- mill, lathe, router, etc), the second part is the name of the .control file. In addition, there is a set of default post text settings, which is what you've got here -- the default settings for a mill. So the guy who's got "[CTRL_MILL|YCM 4X MILL]" in his post probably has at least two headers, one for CTRL_MILL|YCM 4X MILL and one for CTRL_MILL|DEFAULT.

 

Usually, most folks just use one one post with one machine def with one control def, but if you want to get more slick, you can -- for example, maybe you've got a bridgeport vmc 760 and a vmc 1000 in your shop, and you want to use the same post for both, this way you can tweak the settings for each in a single post. In this case, you'll just see multiple text sections at the end of the post, each with its own header. That's why the header name is set up this way.

 

When you select the machine definition from the Machine Type menu, Mastercam picks up the control def and post from it. If there are multiple text sections in the post, Mastercam looks at the different headers and just picks out the right one to read, and ignores the others.

 

The settings in DEFAULT are only used when you create a new control definition, you can't actually post with "Default"

Link to comment
Share on other sites

quote:

The settings in DEFAULT are only used when you create a new control definition, you can't actually post with "Default"

It would be a nice enhancement if this was changed so that the "Default" list was always used if no other match was found.

 

Another more important enhancement would be if the control def had the option to NOT allow for multiple "Pages".

 

The problem that I see over and over again is where because of directory location, or files being renamed, the "Default" values in the control def are being used in error. Because the settings for the specific post file, and the "default" settings are typically the same, this does not cause any problem BUT sometimes it is important that the intended settings are always used.

 

Am I the only one who see this?

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