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