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:

Scuba Jon

Verified Members
  • Posts

    39
  • Joined

  • Last visited

Recent Profile Visitors

909 profile views

Scuba Jon's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Günther Thank you for the help. This appears to be working. It tool a little doing because I have never used a subfile before but once I figured out all the syntax I started getting the results I was looking for. Danke schön!
  2. X4 MU3 Router Hi all I have a post question that I could use some guidance on. During posting, I would like to find all the Toolpath/Point operations with a specific canned text attached to them, record the x,y & z values of that Point operation and then output this information at the beginning of the NC output regardless of where they actually occurs in the program. There could be several places within one program where these occur. I suspect I will have to capture this while reading the NCI file but do not see how to do this. Any help will be greatly appreciated.
  3. Roger Yes, apparently they have to do with some custom mouse control (pan vs. rotate) that we added in at one time. I guess they just don't play well with X4.
  4. I think I found the problem!!! Woo Hoo! I copied my C:mcamx directory into another folder, removed X4 from my PC, deleted all the remaining files in C:mcamx and then reloaded X4. At that point my VBScript worked. I started loading in files from the previous X4 load that were not loaded in the new load. In C:mcamxchooks there is a set of 4 files called: AI_XMENU.dll, AI_XMENU.ft, AI_XMENU.txt & AI_XMENU_.ft. As soon as I copied these into the new X4 the problem reappeared. I take them back out and the problem goes away. I have looked online to see if I could find out what they did but have not determined that yet. X4 seems to run okay without them so we will run this way for now. Thanks
  5. Okay, this is going to sound a little crazy, but this is what I've found. When I looked in C:mcamxapps (X4) I found a file called "MCVBScript.dll" (150KB). I copied over it with the X2 version of the same file (146KB). When I tried to launch my VBScript, I could not even get the VB window to pop up. I copied the X4 version (150KB - exactly the same file I started with) back into the the apps folder and ran my VBScript. It worked and continued to work until I shutdown and restarted Mastercam. At that point it went back to crashing mastercam. I repeated the above steps and it is back to working again. Now I am really lost. Is this a MCX4 instillation problem or is there some switch somewhere I should toggle or ????????
  6. I have tried cycling out the bad electrons (Rebooting the computer) but that is not helping. I have a very simple X4 program and am running the above VBScript directly from X4 and getting the problem. I did a comparison of the .dll's used in X2 vs. X4 and swapped a bunch out but that did not help either. It still crashes X4 when it get's to the "save" or "Saveas" line. Any other thoughts or directions I can look to help solve this? Thanks
  7. We are having trouble with a portion of one of our VBScript in X4. It doesn't matter whether I am trying to SAVE or SAVEAS, it crashes in X4 but works great in X2. Is there a new syntax for this or is this a X4 bug? Here is a sample program with the problem. Call Main() Sub Main() Dim strMCname strMCName = "C:mcamxZZTest-1.MCX" 'Next line works in X2 & X4 call SetCurrentFileName(strMCName) 'Next line works in X2, crashes in X4 call SaveMCAs(strMCName, True) 'I tried this instead but with same results 'Next line works in X2, crashes in X4 call SaveMC(True) 'Next line works x2, not in X4: Insufficient 'memory to perform operation call openmc(strMCName) End Sub Anyone know what's going on?
  8. Mick I can not send you the whole VB.net project (not that you would want the thing - it's mighty big) because it is Boeing proprietary. I am working on an abbreviated version but will not have that done until Monday. Thanks for the help.
  9. I use buffer files in our 5-axis posts to store a bunch of critical data (gathered using the fq1,2,3.. questions at the beginning of the posting) so it does not have to be typed in every time you relaunch a program. The only time it asks the questions is when you launch a different file and that resets the data in the buffer file.
  10. The .dll & .VBB files are in the correct directory (in our case it is C:mcamxapps) and the path for the VBScript is correct. This VB.net application is for model management and the VBScript adds the correct workgroups to the Mastercam file for the specific job being charged out. The VBScript is being built okay but when we try to launch it then Mastercam locks up and crashes.
  11. We have an application written in VB.net 2005 which creates and launches a Mastercam VBScript. It worked great in X & X2 (We skipped X3) but now does not work in X4. Any idea what we are doing wrong? Here is the line of VB.net code that does not work: Mastercam.GUI.RunVBScript("c:mcamxMOM.vbs") If I launch the VBScript directly from X4 it works fine. Thanks for help
  12. Ptlchg0 would be right for a V8 post. They added the "$" for Ver 10 (X).
  13. I have a bunch of points on a few levels in MC and would like to make a VB script to convert those points to toolpath. Specifically, I would like to put them into Circmill toolpath and then add the parameters. I have no problem making a script to isolate & group them I just do not know the syntax needed to create an operation in the toolpath group. I have searched years worth of posts here and been through the ftp/vbscript site and can find no examples of how this is done. Thanks for any help you can offer.
  14. Scuba Jon

    dots

    Settings/configuration/CAD Settings Near the bottom is a box to check/uncheck "Display arc center points" Uncheck it. This is how it in in X2, I am unsure if X3 is the same.
  15. If it is the same program name it will overwrite. If you use a unique name for each one then you can have several programs open in the editor.

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