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:

Mastercam Install Path Variable


cnc-guy
 Share

Recommended Posts

Hi guys,

 

Is there a variable for the install path of the Mastercam application in the post, ie, smcampath = "C:mcam-x2sp1"?

 

Using function result = launch(slauchapp, snewfile), where the variable slaunchapp needs to point to the installed mcam folder to get the MCX Editor.

 

BTW, would have prefered to use Cimco Edit but Mastercam just hangs when defining Cimco as the editor ... if someone has an answer to that it would be great.

 

Thanks!

Link to comment
Share on other sites

50 bucks says you didn't save the file wink.gif

 

Save the file and post again. The variable is correct, it is even used in all of our generic posts like Generic Fanuc 4X Mill.pst:

 

code:

pheader$         #Call before start of file                         

"%", e$

sav_spc = spaces$

spaces$ = 0

*progno$, sopen_prn, sprogname$, sclose_prn, e$

#sopen_prn, "PROGRAM NAME - ", sprogname$, sclose_prn, e$

sopen_prn, "DATE=DD-MM-YY - ", date$, " TIME=HH:MM - ", time$, sclose_prn, e$ #Date and time output Ex. 12-02-05 15:52

#sopen_prn, "DATE - ", month$, "-", day$, "-", year$, sclose_prn, e$ #Date output as month,day,year - Ex. 02-12-05

#sopen_prn, "DATE - ", *smonth, " ", day$, " ", *year2, sclose_prn, e$ #Date output as month,day,year - Ex. Feb. 12 2005

#sopen_prn, "TIME - ", time$, sclose_prn, e$ #24 hour time output - Ex. 15:52

#sopen_prn, "TIME - ", ptime sclose_prn, e$ #12 hour time output 3:52 PM

spathnc$ = ucase(spathnc$)

smcname$ = ucase(smcname$)

stck_matl$ = ucase(stck_matl$)

snamenc$ = ucase(snamenc$)

sopen_prn, "MCX FILE - ", *smcpath$, *smcname$, *smcext$, sclose_prn, e$

sopen_prn, "NC FILE - ", *spathnc$, *snamenc$, *sextnc$, sclose_prn, e$

sopen_prn, "MATERIAL - ", *stck_matl$, sclose_prn, e$

spaces$ = sav_spc

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