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:

hlg2

Verified Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Everything posted by hlg2

  1. Cus really when I fire off a nethook that may have getoperations function in it. I shouldn't... as a mcam user. actually see the operations jump like they do. ya know. if you have a lot of operations. then when it jumps like that. doing whatever its doing. It takes a long time just for up to 10 operations. should be undisturbed ya know. can't leave no trace cus If I start messing with geometry. and I mess something up because of one of these functions. I'd hate to be the one to blame for destroying weeks of work.
  2. does any one else get this?? wouldn't be bad... but just kinda makes me weary of the other functions.
  3. Been playing with this some more... If I have two machine groups. and I use the GetOperations thing then it puts all the duplicated tool instances in the second group. Even puts the tools from machine group in with the tools of machine group 2. Just seems odd... Dont really know what else I could do.... Is there another way to get the operstions? There's one more thing I could try maybe instead of this Dim oplist As ArrayList = New ArrayList take out the New ArrayList part? ..................................... nope that and I even tried doing a oplist = nothing and gc.collect() so now I'm clueless
  4. Ok... I've went rhrough piece by piece of the code. and for even one operation with just one tool. It adds a tool instance with this ----------------------------------------------- Mastercam.MCFile.GetOperations(fname, oplist) ----------------------------------------------- Maybe I should clean release it or something?
  5. Hey guys.... guess who!! I dont know if maybe it's the way I'm doing it. Or what.... but when I search through the operations and pick out tools. It's for some reason, creating copies of the tools. So by the time I get through all the operations its it adds more of the same tools for somereason. what's odd. is that it adds 15 instances of the same tool, and I only have 4 operatoins. ? just sounds odd, I could understand maybe double the operations ya know. or something. Really actually dont understand why it adds the tools in the first place. I dont know I really dont get it. I'm not creating a new tool. maybe when I use Dim opref As COperationRef Dim toolref As CToolRef toolref = opref.operationTool maybe its creating a tool to be able to read the opref tool?? I dont know. is it the way I'm doing it. And also. If I have two machine groups. and I reference the stock dimensions I get the xyz of the last machine group. So I was wondering how do I distinguish between operation groups?
  6. Yeah!! Baby.... That's it buddy!! just needed to update. thanks alot guys. I'll take back halfa what I said
  7. wait a minute....... I may have to take back somea what I said. I have an mr2 folder. and I know I double clicked the setup.exe the other week. and waited for something to setup. but we have different dates on our nethook.dll I'll do an update and see how this goes. and here I've been bad mouthin the X may even hear the pop from there
  8. the ol man was tellin me about how they have an intranet thing, that the dealer was talking about being able to log on to, to get the latest and greatest. they never did give us a login. but we are registered. so if this maybe resolved by being able to get out there on the intranet thing. my sims is or whatever else may need to be done, can uh just email me at the [email protected] sure do appreciate the help
  9. I get a version # of 1.0.2014.17549 ? there's also a runtime version 1.1.4322 and under the object browser. the only gets I have is: getpathfrom and getpathof but no getcurrentfilename looking at the version #'s, looks like mines not up to date. hm. dagnabit. is there a way you could send me an updated sdk? whenever I contact the reseller, he talks like he dont know whats going on and the X version is x-mr2. actually if I make a c-hook. and run it in X it tells me that my c-hook isn't the right version. pops up and tells me I gotta do something and recompile.
  10. Mastercam.MCFile.GetCurrentFileName if I use this I get a GetCurrentFileName is not a member of Mastercam.MCFile
  11. there's not a getcurrentfilename funtion under MCFILE..... mm mm included in this SDK or mine anyway. I dont know if maybe other people are missing it or something but I aint got it.
  12. seems like there's a lot more functions under C-Hooks. Is it possible to somehow build a library from the c-hook functions. and then bring that into the nethooks somehow??
  13. hmmmm maybe your guys' SDK is different from the one that got put out. I'm probably such a pain but ya know sometimes the pains are the ones that makes things stronger. no pain no gain
  14. how to get an operation how to get the current filename annnnd mmmm. how to create a new view and set the gview equal to it Because under GUI I really dont see how you could create a whole new arbitrary view. even with the MCMATH members you dont have a way of using any of the results that we'd get from using those math functions those would be great
  15. Under groups all I have is deletegroupfromname deletegroupfromnumber addenttogroup creategroupfromname getgroupcount getgroupname fromnumber getgrouptype fromname getgrouptype fromnumber removeentfromgroup setgroupname there really outa be getentgroup(byval integer) getmachinegroup(byval integer) separated like that or something
  16. I've been fightin the get filename for a while now. if it were as simple as mcfile.getcurrentfilename() this'd be a done deal. the only members I have under mcfile is EditFile NewMC SetFileUnchanged DoBitmapFile DoFileOpen DoFileOpen DoMetaFile GetPathFromExt GetPathOfThisScript ImportFile OpenMC ReadDXF SaveMC SaveMCAs WriteDXF which most require a complete filename which if to be useful would need some way of getting the current filename. but there's nothing about the actual filename itself?? which we could get tricky and search to the current directory, and search through the files for the most recent. But for 1 we're risking a system lockup 2) we wouldn't be for sure if the most recent file saved is actually the file that made the nethook call. And for getting the operations there's no getoperations member. even under tool path all I have for toolpath is: EditTool RunPointManager SetBlockDrillLibrary SetPostName SetToolLibraryName DoNest EditOperationGeometry EditOperationParameters GetBlockDrillLibraryName GetJobSetupMaterial GerJobSetupStockOriginX Y and Z GerJobSetupStockSizeX Y and Z GetNestedSheetCount GetOperationCount GetPostName GetToolLibraryName MakeNestedSheetBMP RegenOp Nothing about getting an actual tool op. Which most of these members require a referenced tool op ref... ya know, itslike we have a system of equations trying to solve for 2 unknowns. shouldn't be that complicated. Under groups there should be a member that refers to the machine groups. then under toolpath there'd be a member for getting the ops from the machine group. just as there is a way to get a tool from an op. because under the groups all we have are ways of getting name from number number from name which if the user changes names we really wouldn't have a way of distinguishing one type of group from another, only by group type. but now you're going to have more if then checks that wouldn't be necessary. if there was just a separate member for the different kind of groups. In alllll honosty. These nethooks are almost useless. because thus far. all the functionality could be done by just making an MCX file that has already created geometry and what not and just merge and stuff. We really dont have much control over modification. which is what we really desire. Because then we could use the power of associativity and really do some neat stuff. The only other option I guess is to abandon the nethook approach go back to C-Hooks But thats old technology. And actually proves that internally. X is no different than it was 10 years ago.
  17. nope that wattin it. hm. well. I dont know. looking through the object browser I just really can't see anything that'd do it. cus even if you wanted to create a new coperationref using an existing coperationref like as one of the overrided options would supposively accept. How the hecks would ya reference one to even put in there for it to copy???? this thing is sooooo close yet so far away. well I'm tired. hitter again tomorrow. ya know. and really. we should be able to access all of mastercams functionality just as we're able to access the functionality of our own forms and functions. I was going to start out and develop a "flymode" for X but we're not really able to set a new view like how a user could. in all technicality. I should be able to create an axis. then set a view using my x line and the z line that would be created in the nethook. then just move the axis continuously. during refresh re-associate the X and Z lines. mm mm. sounded like a good idea.
  18. mmmmmmmm...... I can get group names and group numbers. but to actually set my operationref class to the operation itself. operationref = mastercam.?.? how do we go about doing that? cus we dont have a groups.getnextgroup function orrrrrr wait a minute....... issss it. COperation = New then use the grpName?
  19. Well As much as I really do appreciate the reply. it sure didn't do the trick. actually if there were a mastercam.mcfile.getcurrentfilename that'd be it, buuuuut. I guess they forgot it. *shrug* seems pretty simple though. this programming stuff is probably onea the biggest headaches. Ya know, I mean a filename? I mean come on man. Here we are 2006 and we still aint got it right. 5 years of development???? I'm a second generation user of mcam started with version 6 my dad started with it at 3! And all the times we've went up to bat for mcam with the bigger companys and all the xxxxia lovers. alllll this time and we're still in the dark ages of information hiding. sure am disappointed. Its just that development could go soooo much faster if things were just out in the open. cus honostly you could put it out there in plain english... spelled out and people wouldn't know what to do with it. And those who got the ideas of what to do with it could really get things going. I dont know. oh well. onea these days I guess. thanks for the reply. have a good one. they really outa bring back the mutant league football. that was a bad a-- game!!
  20. Is there a way to get just the filename in a nethook. whatever the current mcx file that's open. how would we reference its filename? any ideas. there's a lot of get current paths but not too much about current file
  21. or it could go I'll abbreviate a little dim machinegroupcount As Integer machinegroupcount = mcam.tpath.getmachinegroupcnt then dim machinegroupA As machinegroup machinegroupA = mcam.tpath.getmachinegroup(i) dim opgroupcount As Integer opgroupcount = machinegroupA.getopgroupcount dim opgroupA As opgroup opgroupA = machinegroupA.getopgroup(i) dim opA As COperationRef opA = opgroupA.getop(i) etc..etc....
  22. Anyone know how to reference individual operations using a nethook? they have a coperationref class, but I dont know how to set it equal to an existing operation. any clues would be greatly appreciated what would be ideal.... is to have the operations grouped as a collection. then have each operation referenced as an "item" so then you could get the operationgroupcount like is there then just loop through the operation collection replacint the item numbers 0 - etc....
  23. does anyone passing by know how to reference an existing operation using NETHOOK I see that they have a coperation class thing but aint gotsa a clue how to set it to an operation. ??????????????

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