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:

John T.

Verified Members
  • Posts

    189
  • Joined

  • Last visited

Everything posted by John T.

  1. Solids are memory/disk space hogs! We convert all solids to surfaces just for this reason. John
  2. ayup. I've held off messing with my HTML setup sheet any further (still couldn't get the formatting right) until the new VBscript stuff comes out. Then of course, I'll have to follow through with learning VBscript. I >think< one can send the information to WORD, if I understood the book I was reading right. That would save us a step. John
  3. Is there a reference file in MC that shows all the Post script language functions, etc, like the one for VBScript? John
  4. I've been reading the book "learn microsoft VBScript in a weekend", and have a pretty good idea of what I need to do for a set-up sheet, using the MC specific commands for VBS. I notice however, that there doesn't seem to be commands for getting flute length or overall length of a tool. Is there a way to do this, possibly reading the NCI code or such? I can read the lines where the tool information is stored, would need to figure out how to tell VBS to read the line numbers, then read the data between the spaces or something like that, as the data fields can vary in length. John
  5. Millman, I was just looking at your sample sheet above again, and noticed that your tools are printed out of order, howja do that? That sample is from HTML2.SET in the files section, correct? What are you trying to do with the max-min thing? does it have to do with your T14 facing operation having extremes of 9999? Something you wante done about max-min but couldn't figure out, is what I recall. John
  6. Well I just picked up a book, "learn microsoft VBScript in a weekend", so I'll be tackling that too. Perhaps I can figure out how to make this do exactly what I want if I can learn how to "read" the NCI file (I think) to get the tool dimensions and comments. John
  7. I've found that my latest code (I'll upload it as Johnhtml3.set) works, UNLESS you have multiple operations per tool, then it lists the tool as many times as there are operations. I'm still looking at this to see whats what. Millman, the tricky thing about this whole mess was getting it in two columns. Perhaps if I were more familiar with HTML, I would have gotten it quicker. John [ 11-07-2003, 02:52 AM: Message edited by: John T. ]
  8. OK....I went back and worked with the looping code. I'm not sure what I did, but the shorter code now works just like the long coding. . Does anyone know, is ALL the tooldata read at once for all tools? I was thinking of somehow coming up with some like "if maxtools <=10, then use the widetool headers, else use the two column header". The header being "tool, description, flute length, overall length". John
  9. What I've done is to do the sheet quick and dirty, and simply have a if then statement for each possible tool for up to 20 tools. If t=1, then print it this way, if t=2 then print it this way, repeating the same thing over and over for the first 10 tools, then does it again for the next ten but having a td valign=top command between the 1-10 and the 11-20 routines. I uploaded johnhtml2.set to the txt and posts FTP. I would have preferred to have it done in a much simpler loop. Originally, I tried to use very similar code to what is in the upload, except I used if t<= 10, then print it this way in a 50% table which is inside inside a 100% master table. Each field is given a width in percentage, 4 fields total. Then after that, there was the toolcount +1, then another if then statement that checks for tools 11-20, and if true, do the td valign=top command then put out the fields in a 100% table. In theory, this would have moved the tools 11-20 to the right, and lined up with the first 10 tools, but it doesn't. Depending on how its coded, tools 11-20 are either spread over 100% of width, or on the right side but below the first 10 tools. John [ 11-07-2003, 12:05 AM: Message edited by: John T. ]
  10. That sample SET sheet helped in the IF-THEN department. This is driving me nuts. I've basically modified the tool table routine (pwrtt) to read 5 tools, list them on the left 45% of the page (in a 100% table), then tools 6-10 on the right side, using a 100% sub table and the td valign="top", and many variations thereoff, but it just doesn't work. 6-10 spread out over 100% of the page. Once we got it to have 6-10 on the right side, but it wouldn't go line up next to tools 1-5. Futzing around, we found that if we used the equation if t=1, then print the table, then the next instructions were if t=6, it would print the table, but each only had tool 1 and 6 (which was what it was told to do), and each tool column was next to each other like it was supposed to be. It just won't work when we try multiple tools. dang. If anyone is interested, I can put the SET file we're using in the FTP as it is now. John
  11. Thanks for the many replies, they have helped a lot. One thing we can't figure out is how to define a string that contains qoutation marks. we are trying to define stwocol as the valign=top command in HTML, but we can't get the string to work right cause of the qoutation marks around the word "top". we've tried the ", 34, "top", " but it didn't help. How do you put qoutes in MP language string definition? John
  12. Seriously now, what "language" is the HTML.set file in? I've managed to whack it mosty into the shape I want, except for the double column for the tool list. I can't seem to get a "if-then" to work properly. I'm trying something like this: I typed out left pointy bracket in single qoutes instead of < because that makes the HTML coding kick in if t = 10, "'left pointy bracket' td valign=", 34, "top", 34, ">", e t is the tool count. Something similar is being used to make the program information at the top of the page go in two columns, but doesn't need the if-then. John [ 11-04-2003, 10:29 PM: Message edited by: John T. ]
  13. Millman, what is MP? I've got 3 questions here- Is the .SET file in a language, visual basic perhaps? I can see it makes calls to visual basic (or something to do with VB). I haven't programmed in any basic for 15 years, so I'm not familar with VB, but I can at least read it. Second, can/how do I program the HTML to have one field print sideways on the upper right side? We put a part number in this location so that when the printout is in a folder, it will be easy to find. Second, what I would like to do is have the tools and their dimesions in 2 columns like our old handwritten op sheets. I'd like a max of 10 tools per column. First column would have tools 1-10, 2nd column 11-20, with unused (ie: less than 10 or 20 tools)fields being blank, or not printed. Is this possible in HTML? John
  14. Its the .SET file that needs to be customized, correct? I'm wading through the sample HTML.SET file, and while I think I know what I want to do, it'll take some trial and error. Lots of unneeded stuff in there, but one has to be careful about deleting it. The tricky part I think is changing things so that tables and whatnot come out the way you want. John

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