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:

wtsylvester

Verified Members
  • Posts

    99
  • Joined

  • Last visited

    Never

Everything posted by wtsylvester

  1. so it's in the ftp://www.ppcadcam.com/Mastercam_forum/unspecified_uploads/ folder
  2. So i wrote this program in VB6 and what it does is turn a single part program into a program with x number of work offset, according to haas ...it's really setup for the haas and mc post we have... it's a whooping 36k , u need vb6run file of course.. so do I upload it to the ftp site?.. e it upon request..what... I'm not sure of the what the procedure is
  3. Well I'm sitting at home due to lack of work. and a little bit of snow. But I'm just a lowly worker bee "Know thyself" You would have to talk to the boss. Also we are in NM near Albuquerque. E- me if interested Bill
  4. Rekd, I can e ya the source or post it here. it's still a little rough but darn close. But if ya want me to e ya , e me then i'll return it to ya Btw what neck of the woods you in Bill
  5. Rekd, Cool, so I take it you did that in VB6 also. Way back I made a bunch of basic progs to do parametric shapes, long before proe. Was thinking of converting some of them to script , but mc makes it too easy to do, so it's sort of "Why Bother" But I am think of converting my local subs prog to a dll, there really isn't much code. I could send it to ya.. if ya like
  6. So I bring a mc8 file into 9 add a tool when I goto post... first I get the mc8 file posted then it goes to post the one tool I added in 9 ... no big really as I just pasted them together.. but there must be something I need to change...tool library or something ???
  7. well what I did was wrote a vb6 program. that takes a single part program with the standard haas post that we have .... in the vb program I enter how many w/o I want and then it opens up the 1 part nc program, seperates the t/c into single txt files ... then reassemblies it all with the tc..g54..g55..g56 etc with the proper xy values for each sub and then sticks all the subs after the m30 and puts in "N" based on tool ..m99 etc seems to work just fine , still need to fine tune it. Need to change it around to support using the same tool twice. Only good for standard mc haas post code.... but could be change slightly for other machines I wasn't able to make heads or tails out of how mc wants me to do w/o in it... error code .. post doesn't support it.. standard haas so I rolled my own Still waiting on post docs from dealer. If there is a pdf file on posts somewhere , let me know
  8. Jaywalking on Leno is great. I had a neighbor in cal. who should be on there. She thought Japan was a state. ...hmmm must of been part of the civil war. So I guess China is part of Canada.
  9. Does anyone use this ? My haas post doesn't. I guess it could, need post info. But I find it handy for multiple w/o it's all in one program and you don't have to load and edit any subs.
  10. I have never been able to figure out why Ted Kennedy is in any kind of office. But then again I guess he isn't the only one. Who was it just recently Conduit or something like that ...offs his girlfriend or page whatever they are called in DC, nothing happens to him other than not getting re-elected. Some guy up in washington state, kills what 30 hookers maybe more. Doesn't even get the death sentence. SD senator? runs down some biker, gets a 100 days. I guess I just don't understand the transition this country has gone through. We have a president who was a deserter< awol over 30 days ucmj> ..it's like well so what. At least he isn't soaking his cigars at the "Y" like the last president.. it's all the same to me. I think the system is way outdated. It may have served well back in the early days. It's time for a update. I feel that most of these bozos are well for lack of a better term... "Cutting Air" Not getting any parts out at all. What they do manage to get done , is scrap anyway. But it would be interesting to see these guys , ask what they intend to do about CHINA !! What is the answer there? What an embargo? ?? Like another thread here... it's just going to escalate. Then the chinese will have all the money , like the arabs do now. I am really surprised that they are here tho, New Mexico..rofl these guys must be worried, most people think we are part of mexico. At 7000 ft above sea level it will be funny watching them huffin' and puffin' 7000 ft .. makes me one of the highest paid machinist in the US.
  11. It's showtime here in New Mexico today we have Wes Clark ,with a intro by Ted Danson. Tomorrow ... Kerry with intro by no less than Ted Kennedy. Gosh they are out here courtin' us high altitude hillbillys , and I'm off because ...well it's slow and China does all the manufacturing nowdays . So just wondering if there are any questions my fellow cohorts in Cam my have for either of these guys .. or who knows , Sam from Cheers
  12. Dib, Don't have info with me here. But it might like an error I got dealing with... ToolNumber = GetToolNumberFromOperationID("",intOperations) was ToolNumber = GetToolNumberFromOperationID(intOperations) no "" 's Perhaps :)Perhaps not ..Does deal with the FromId
  13. I was wondering, not having MC in front of me. On long lines of code , are you able to use to continue on to the next line, like in VBA/VB dim myvar1, myvar2, myvar3 _ , myvar4 for lack of a better example Also on dim'ing things... in vbs is everything a variant? no .. dim mystr as string or dim pi as double ? Speaking of pi script pi value 4*atn(1) good? Mick... glad I was able to figure it out , if I find anything else I will pass it on. I tweaked around the dll example and added a form with a 6 button toolbar... word > for engraving ..wordperfect should but doesn't work ?? Dell freebie .... just need to put some more vb code behind the other buttons. etc.. need some ideas:0 other than formatting to html
  14. I made some changes on the GetJobInformation script It would bail on the GetToolNumberFromOperationID line ToolNumber = GetToolNumberFromOperationID("",intOperations) was ToolNumber = GetToolNumberFromOperationID(intOperations) no "" 's also set values zmax=GetNciMaxZFromOperationID("",intoperations) zmin=GetNciMinZFromOperationID("",intoperations) on seperate lines then used the format in the .writeline statement with zmin/zmax ..... FormatValue(zmax,4) tho FormatValue(GetNciMaxZFromOperationID("",intOperations), 4) may have worked , might need another set of brackets ?? also OpsTest.vbs and ListAllOperations ...needs i "dim"ed' to run ...option explicit at least under the new mcamvb.dll Just sharing some things I have found
  15. ---------------------------------------------- I would prefer a way to make parametric drawings and operations and only to change variables like lenght ,depth and so on and regenerate . This will be a great timesaver ! --------------------------------- Yes any plans on applying geometry constraints like in proe ?
  16. Millman I see you are in Carlsbad, I used to work over on Loker.Made vacuum forming molds for some real nice folks there about 10 years ago.- small world Anywho, I see the dll as a real nice hook, grant Mick can chime here and let me know about restrictions on objects I can have with VB , I added some of the common crotrols, not sure about adding a toolbar etc. I guess there is some packaging tools for sharing dll.s I have been fooling around mostly inside of autocad, but loading the script reference and trying to stay close to the mcam sytanx as far as writing to files , stuff like that . Seems I can work some of the code out that way , leaving the mcam at work, had to cut parts and code at the same time .. least for me I pretty much wing it with mcam , but have been into vb for awhile. Script looks alot alike. I can see a number of ways to try it together. You can load the object librarys of acad and solidworks and certainly the mcam people should be enjoying that we are digging the interface. Didn't mean to get so long winded, Football to watch
  17. So I am seeing how this fits together, with vbs,vb,and vba. Dll', vs a .exe So lets say I want to process some info from Mcam , I use script to get the info then write in script with the fso object.... launch my dll to read that info.. change whatever and write to another file with vb end of things. Script resumes after dll unloads and then can read info in off the vb written file and use script again to change whatever values based on the orginal mcam file. I put an word object on a form and did all the compile, regsvr etc .. so I have a spell checker I can use .. paste into any note etc.. I also put routine on the form load of the dll, with a unload at the end and have a transparent process, back to mcam. So I can see the advantage of the dll because you can script the load/unload, where as the exe would be waiting for user action. Got to looking at the get ops script and can see writing up some secondary ops manager to keep track where certain ops are in op9 files I am curious if there are some open variables, that I can write to. I am taking it for granted that the variable declared in a script are only in effect during the script. Or can the be passed to the next script that runs. I think I may already know the answer to the next question, and that is .. Isthere a way to run the mcam script editor outside of macm, I see that it is a dll also. I wouldn't mind writing some scripts at home , and have the advantage of the inteli-sense. Just not wanting to be taking the hasp home. guess that's it ... like the forum Bill
  18. Disabling OpenGL seems to do the trick. It doesn't quite act like it did in ver.8 but that's okay.. Thanks for the input Bill
  19. We just upgraded to ver9. and when I regen a t/p and hit esc it takes forever to go thru the tool display, in ver8 , it was done in no time. I have tryed about ever nc setting in config... still it draws a little ... takes a break , then draws a little more....it will go faster when i hold down enter.. verify is faster. but then i need regen first It's driving me crazy..or maybe more crazy is the proper term Gosh if anyone can tell me what setting to put in , I might be able to get something done today... terrible way to start out a new year Tia...Bill
  20. thanks for the code. I am a bit curious in the vbscript help file it says // get the eptr of the current active entity (see colors above) Integer GetEntityEptr() where it says "colors" should that be refering to the part about classes instead of "colors" It seems to me that this is the entity info that brings out the variant info about point locations, radius etc. of that entity make sense??? Bill
  21. too cool , gosh what a quick reply back after being so used to being shunned by other softwares
  22. Mick, Right got what you are saying. So I will have to vbscript any info I want to pump out of vb6 with a FileScriptObject..so I put in some eof marker in that file with vb, read with the fso in the vbs until I hit marker....to grab any undetermined size file .. case select in the vbscript to base actions or fill in the blanks of what I want do to. It's all pretty cool. I try and work in some of this during runtime. Mastercam makes things so easy to begin with I don't know why I bother Back to subject, I sort of don't see why the dll Seems like I can just write to a file with a VB6.exe, maybe have a shell to that , then use vbs to read it in and do it's thing.Don't really know enough about that end of things. So, I can see input, I really don't quite know where to go on output, I see the writing of the fso. I don't understand looping thru mcam //// Database Search functions // initialize for database searching Bool StartDBSearch( Integer, (Input: entity bits “or”ed together) Integer (Input: entity Ids “or”ed together) ) // get the first or next entity in the database and make it the current active entity Bool NextDBSearch() I mean who's ed wouldn't that be mc_ed < sorry couldn't help myself > mc_selected ?? How do I go between the upper and lower number of entitys in the database. I guess I really need an example tia sylvester
  23. I regsvr32'ed the dll example got that to worked played around with the code in VB6 , changed it around to do more or less the same thing in acad2000 . I was wondering if there is a way to reference the mcam commands in vb ,like i can with the acad stuff..or is it like apples and oranges, vba vs vbscript Also in the entity commands of mcam , is there a method I can loop thru all the entites and do thing based on entity ...name..type? for each ent in mcamdatabase case select or if statements here next ent and while we are at it fso... FileSystemObject something like dowhile not eof(1) to read in data may not make much sense , I don't have my examples here with me granted all this with proper dim statements etc tia ..Bill

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