Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Last move indentification

Gears Phenom Gears Phenom
Gears Phenom

If I undestand well save variable in end of path event.

But MOM_insert is executed before mom end of path event.

I want to set my variable just before MOM_insert triggered from end of path in operation.

 

Bez názvu.png

 

thats why I want to find last move

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: Last move indentification

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

I would agree, use something other than an "INSERT" statement.

 

In the event handler for your UDE, do NOT output anything.

Then you can add the UDE to the "Start" events for the operation.

 

Then add a hanlder in the "end of path" event to handle the UDE data, and output it in the appropriate order.

 

In general, I abhor using the "Insert", "User defined", "Auxfun" and "Prefun" UDEs.

In one post I actually over-ride them and NOT output anything (except a warning to the Info window), just because the users NEVER upgrade anything (Me to user: I mean, really, you are using "INSERT/M8" instead of "coolant on"????!!!!)

 

Of course, then I have to be pretty responsive when they need new functionality from the post :-)

 

 

 

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Highlighted

Re: Last move indentification

Gears Phenom Gears Phenom
Gears Phenom

 

@Ken_A

"In the event handler for your UDE, do NOT output anything.

Then you can add the UDE to the "Start" events for the operation.

Then add a hanlder in the "end of path" event to handle the UDE data, and output it in the appropriate order."

I agree. I work with udes the same way.

 

you said:

"Then add a hanlder in the "end of path" event to handle the UDE data, and output it in the appropriate order."

OK but try then add this ude into local return setting in turning operation.

There will no output ofcourse in nc code, because you set it to not output anything.

(local return - when you add ude there - it call MOM_ ..in the midle of paths - so  there you need normal output.)

But for end event you want to control the output order.

I want to handle this both situation for one ude.(doesnt matter if it is insert or custom ude)

 

*to ude insert - I think doesnt really matter if you use insert ude or your custom ude.

MOM_....udes has fix place in output order in as end event/start event.

 

If you can give me clue how to identify last move/ last move event - this can help me.

(where I want to decide proc in MOM_...ude -> now stop outputing, now I need just save variable and I will output it in order I want in end of path event.)

 

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Learn online





Solution Information