Hello Guest it is April 25, 2024, 09:10:04 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gtoguy

Pages: « 1 2 3 »
11
VB and the development of wizards / Macro Parameters
« on: November 22, 2007, 11:20:22 AM »
How do you write a user macro that takes more than 1 parameter on the command line?

I know how to do it with 1 parameter ......Param1 ()......but how do you allow the user to enter 2 or more parameters?

Thanks,
Pat

12
Ron,

I'll send command box the code to your email account.  It will probably be obvious what I did to make it display the "tool description" on the wizard screen.  The little dot you see on the screen shot to the right of the new command box is a minimized OEMDRO for the tool number that I write the user selected tool # to. After that is done, the label text box control named "TOOLDESC" will automatically display the tool description from the tool table.  Let me know if if doesn't make sense after you see the code.

Pat

13
TP,

I could not figure out a way tp show the description in the dialogue box.  I did get the secret to displaying it from Graham on this forum as a label so after you select the tool from your table, it actually displays on the wizard screen so you can immediately see if you got the correct tool by its description. on the screen shot you'll see the description for the selected tool is ".25" End Mill - 4 flute carbide".  that was automatically displayed after the user selected tool #3 from the dilogue box.

Pat

14
Ron,

Its a shame that you cannot open the modified file I sent as it would answer some of the questions you asked.  I don't understand why you can't open it in screen 3.  Maybe it is the version #,  mine is 2.7e.  Maybe Art can comment on why he thinks the file won't open on your computer.

Anyway, the way I wrote the code, the user can enter data the way you originally wrote it OR select a tool from the tool table.  They can simply type into the DROs if they want to change the value the wizard will use.  Not sure what TP is referring to as a "risk", the program does not write back to the tool table, it simply reads what the tool table already has in it.

 I have been using this modified wizard and it works great.  It shows me my tool table entries so I don't have to remember them, and automatically enters the diameter data (with no typing errors for me to make), along with my tool description, all with the push of a button.  If the tool table is empty or if the user does not want to use it, they simply type in the DROs as your original pprogram req'd.   Seems like its hard to complain having both options for the user.  (I promise I won't push the subject anymore after this :)))

I attached a screen shot so at least you can see the buttons and dialogue box that will pop up with the tool table data.

Pat

15
Ron,

Were you able to open the modified .set file I sent last night via email? I addressed some of your concerns in the file I sent you.

You can write to the "OEM tool # DRO" by using the SetOemDRO(824,xx) where xx is the tool number selected or entered by the user in a variable, userDRO, etc..

Maybe I missed your point or maybe this will help.

Pat

16
Thanks, it works as advertized.  Where do you find this information in the documantation?

Also is there a way to read the label text from the TOOLDESC label in VB code after it displays the tool description?

Pat

17
Graham,

Any way to get the "tool description" from the tool table in addition to the tool diameter and offset length?

Pat

18
Newfangled Solutions Mach3 Wizards / Re: PCNC3 vs. Mach3 Paths
« on: September 30, 2007, 11:06:06 PM »
Ron,

Can you also have the thread milling wizard give the user the option to start on the bottom of the hole and move up?  I have found in my experience that this works better to keep you from cutting the chips just created.
Thanks,
Pat

19
Newfangled Solutions Mach3 Wizards / Re: PCNC3 vs. Mach3 Paths
« on: September 30, 2007, 11:42:17 AM »
Ron,

Wanted to make sure you got this info from Graham on another post.  Looks like a good solution to accessing the tool table info.

GetToolParam(SHORT toolnum, SHORT param) where paramaters are: 1 - tool dia, 2 - tool rad........

Pat

20
Graham,

Thanks.  It is exactly what I was hoping existed to get the tool info.

What is the best source for the complete list of VB functions?

Pat

Pages: « 1 2 3 »