586,096 active members*
3,813 visitors online*
Register for free
Login
Results 1 to 11 of 11
  1. #1
    Join Date
    Feb 2007
    Posts
    514

    Change default nc extension

    How do you change the default nc file extension from "NC" to "ngc" in 9?

    Thanks
    John

  2. #2
    Join Date
    Jun 2005
    Posts
    305
    Boy, I thought I remembered doing something like that a long time ago but after doing a little research I don't believe you can change the default extension.
    I might be wrong about this.
    ObrienDave. MasterCam since V6. Gcode since 1983.
    The nose you punch today may belong to the butt you have to kiss tomorrow.

  3. #3
    Join Date
    Feb 2007
    Posts
    514
    Thanks for the effort and I hope your wrong LOL...

    John

  4. #4
    Join Date
    Jan 2006
    Posts
    357
    Yes it can be changed, You need to go into your configuration, from within mastercam and change it there, you will have to hunt it down. I don't remember exactly where its been a few years but its in there.

  5. #5
    Join Date
    Jul 2003
    Posts
    263
    I use TEXTPAD as my default editor, when the file opens in TEXTPAD after posting i use the file drop down menu and rename my file, i can change file name
    and extension and file is saved with the new extension not as .NC file
    If you can ENVISION it I can make it

  6. #6
    Join Date
    Mar 2006
    Posts
    1013
    Open the post in the editor (Make a backup first).

    Find a sections where "Strings" are declared.
    It will look somethins like this....

    #Address string definitions
    strm "M"
    strn "N"


    Add a new line that says

    sextnc NGC


    Mike Mattera
    Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
    http://www.tipsforcadcam.com

  7. #7
    Join Date
    Feb 2007
    Posts
    514
    Thanks Mike

    I found it and the exact syntax is

    sextnc .ngc

    The period seems to make a difference...

    Thanks again
    John

  8. #8
    Join Date
    Jun 2005
    Posts
    305
    John,
    The reason the peroid makes a difference is...
    variable names that begin with an "s" are literal strings.
    without the period you would get a file name like "file1ngc"

    Somewhere on this forum there is a copy of an old "postprocessor reference guide" from about V5.
    Even though it is VERY dated, it will give you alot of tips about variable names and structures.
    Also it has info about the 'fastmode' function for debugging posts.

    If you have access to a hex file viewer, like Ztree, you can find the supported variable list in the file \Mcam9\Chooks\mp.dll
    Not sure where the appropriate file would be in McamX
    ObrienDave. MasterCam since V6. Gcode since 1983.
    The nose you punch today may belong to the butt you have to kiss tomorrow.

  9. #9
    Join Date
    Feb 2007
    Posts
    514
    Thanks ObrienDave, I found some .zip files that were really .rar files in this thread

    http://www.cnczone.com/forums/showth...e+guide&page=2

    is that the one you were talking about?

    I can't open a .rar file here...

    John

  10. #10
    Join Date
    Jun 2005
    Posts
    305
    Yes that is what I was talking about.
    If I get a chance , I will re-do them in real ZIP format.
    ObrienDave. MasterCam since V6. Gcode since 1983.
    The nose you punch today may belong to the butt you have to kiss tomorrow.

  11. #11
    Join Date
    Feb 2007
    Posts
    514
    ObrienDave, thanks. In the mean time I'll try and open them on a computer at home that might have winrar on it...

    Thanks
    John

Similar Threads

  1. What is a M3P extension
    By bill south in forum Mach Wizards, Macros, & Addons
    Replies: 5
    Last Post: 12-10-2014, 08:39 AM
  2. How to change default xyz orientation
    By RaveBoy10 in forum Solidworks
    Replies: 1
    Last Post: 03-24-2008, 01:35 AM
  3. post file extension
    By GRANDPA in forum Mastercam
    Replies: 3
    Last Post: 03-22-2007, 04:44 AM
  4. Extension Cord
    By dneisler in forum Welding Brazing Soldering Sealing
    Replies: 4
    Last Post: 01-14-2006, 02:29 AM
  5. Is there a default feed rate ? and if so can you change it?
    By fyffe555 in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 02-09-2004, 03:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •