Interactively, you can do this in the tool path editor. You will see level markers in the listing - set the graphics selection to level and pick a motion on the screen, and it shoul dtake you there. At this point, select Level in the tree, and add an event, choose machine control.
The level markers are also available in the API, so you could write a program to do this.
Why do you want to use UDE for every level? If you need some processing on every level, you can simply analyse the change of level inside postprocessor and add some handler there.
thank you Mark for the suggestion,
i suppose that use API for to develop a custom application may be the better way.
just to complete the question, i need to insert some custom UDE to perform program loop and tool life checking between every level.
are you able to provide me a code sample to perform this action ?
Below is a sample program that keys off the operation name just to test. Create a planar milling operation named LINEARMOVEINSERTION, select it, and run the program. In the code, look at Function UdeInsertion.
But I agreee with the other questions - why not just do this in the post? If you need user control you could put a UDE in the start events, and let the post take action between each level.