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:

arenner

Verified Members
  • Posts

    216
  • Joined

  • Last visited

Everything posted by arenner

  1. Hello. I compiled a C-hook without errors. Then I went to run it from Mastercam and got this errors: "Incompatible C-Hooks internal version number. Recompile and relink the C-Hook: " Any ideas on why I got this error?
  2. I'd like to use something like this: SetEntityFromEptr() Call RunMastercamCommand("ExtrudeSurface") (in VB) to bring up the extrude manager for a specific entity. I have 3 arcs, and assumed that inserting an integer value from 1-3 would have selected one, but it didn't. (I'd like it not to ask me to select a chain). I'm not familiar with how the entity pointers work, and after searching this forum have not understood them any further. Related to this question. Would it be possible to have a c-hook select an entity and run the extrude function without bringing up the manager? I'm going to extrude a certain amount each time, on the same axis, in the same direction, so I don't need to extrude manager. Please excuse my newbie-ness, thanks.
  3. Hey Mick. I appreciate the help. I was able to figure out what I needed to add to get the Windows Script Host functions to work. I took a second to create a commented example based on the script I created for my work. It creates an arc from the example text file I also uploaded to the FTP site. They're both named: "CreateArc_FromTextFile" I hope it will be of use to forum members. Without much trouble it can be edited for other text files, and create other geometries.
  4. Hey, I forgot to mention: I was only using WScript.Echo to make sure that my arrays were setup correctly, and that my code was error free. What I plan on doing is using the stored arrays for use with the other neat functions like CreateArc, etc... I have data outputs in text files that I'm attempting to read. Hope that makes it more clear, thanks.
  5. Thanks Mick. I realize that I usually declare variables as you mentioned. But my main question, is why the Windows Script Host commands don't work with the Mastercam Editor. If this isn't available to open a text file, is there another way without relying on Windows Script Host functions like: CreateObject("Scripting.FileSystemObject") Thanks again for chiming in. I appreciate the help.
  6. Hey thanks Mick. I was hoping you'd chime in. I figured it was something like that, but didn't see it in any of the help files. I'll try to use a chook instead of attempting the second item of my post. Thanks for your help.
  7. Hello all. I wrote a script based on some examples to read a text file. It uses common Windows Script Host functions. I worked with it in Notepad and ran it through cscript.exe in command prompt. However, when I run it with the Mastercam X Editor it doesn't recognize the WSH functions I used. I've included it on the FTP site called "Read_Text_File.vbs" and can include the text file it reads if you want to test it. I don't quite understand why the Mastercam editor doesn't recognize the WSH commands, when I have WSH 5.6 installed on my machine. Any ideas? Thanks.
  8. Hello all. I'm still a newbie to VB. I'm looking around and using the goodies in the file "Mastercam.ft". I've been using this syntax: Call RunMastercamCommand("") First, when I use run_user_app in the parentheses, I'd like to open a specific .dll using VB instead of having to manually select it. Second, when I use do_xform_rotate I can add SelectAll and the Xform Rotate manager pops up for me to input values. Is there a way to send one of the input boxes a value using VB? Thanks in advance.
  9. Thad, that was probably Josh Adams (don't know his user name though). He was a comp sci guy helping with our research. I've taken over some of what he worked on.
  10. Thanks to Thad on the Mastercam Forum. The list I'm looking for was in "mastercam.ft". Any thoughts on running a chook from vbscript would still be welcome though!
  11. Hey Thad, thanks. That's what I was exactly looking for. And I think "mastercam.ft" is what Crazy^Millman was referring to when he mentioned a text file. So I got it all figured out now, thanks for all your help.
  12. John - Good idea, it's over at the Developer's forum. Crazy^Millman - I'm a newbie, so I'm not sure if you mean that there is a .txt file for the commands I'm looking for, or if you meant something different by TXT. I'll look into the config file though. Thanks for the input.
  13. *This is a repost. I had put in the Mastercam Forum this morning but it was suggested to be here* Reading through some of the VBScript posts, I've seen this syntax: "RunMastercamCommand()" I've seen it used for running MC specific executables. I'm looking for a list of available commands that I could use inside the parentheses above. Any thoughts are appreciated. Along the same lines, it would be nice to find a way to perform the "Run User Application" (chook) function from a VBScript.
  14. Reading through some of the VBScript posts, I've seen this syntax: "RunMastercamCommand()" I've seen it used for running MC specific executables. I'm looking for a list of available commands that I could use inside the parentheses above. Any thoughts are appreciated. Along the same lines, it would be nice to find a way to perform the "Run User Application" (chook) function from a VBScript.
  15. Hello all, this is my first post on the forum. This forum has already been a valuable resource. So I wanted to post a message to say that there are four VBScripts on the FTP site in the /VB_Scripts folder. They're names describe they're function: CreateArc, CreateLine, CreatePoint, CreateRect Thanks to Mick George for the help! They're nothing fancy, but who knows who else might find them useful.

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