Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Custom Cycle

[ Edited ]

Hello there,

 

I am trying to add a custom cycle, see the pic below.

 

cycle.PNG

 

I have found that there is a post in this forum asking about this. I have read through the post and also watched related videos mentioned in this post, such as how to add a user-defined event, ect. 

 

I have done as follows:

1. create a user-defined cycle in postbuilder.

ude.PNG

 

2. Save the post, and copy the code of this cycle to file ude.cdl.

CYCLE ThreadMilling
{
   UI_LABEL "Drill,ThreadMilling"
   PARAM thread_macro_name
   {
      TYPE o
      DEFVAL "1_16_27npt.h"
      OPTIONS "1_16_27npt.h","1_8_27npt.h", ......
      UI_LABEL "CALL MACRO"
   }
}

 

3. Create a hole_making.Tapping operation in NX, select this custom cycle, and select one option

 MACRO.PNG

 

Then I post processed the operation. It seems that the cycle was not run at all. When I added a text output at the beginning of the custom command in the cycle, the text was not output at all.

 

Any ideas?

 

Thanks,

Kai

 

6 REPLIES

Re: Custom Cycle

Edited

Re: Custom Cycle

I have also tested with the review tool. It seems that the cycle was run, but nothing was output from the cycle. Even when I added an operator message in the custom command of the cycle.

 

Debug2.PNG

Re: Custom Cycle

Hello
Maybe that the Name "ThreadMilling" is an reservated Name in NX?
I do the same with an UDE Name CustomDrill and this works fine.

Heinrich

Re: Custom Cycle

Thanks, Heinrich. I changed the name, but still doesn't work. It is a cycle by the way.

 

Kai

Solution
Solution
Accepted by topic author Kai_Xue
‎04-08-2016 03:25 PM

Re: Custom Cycle

Thanks, I have solved the problem by myself.

 

In the postbuilder, I name the cycle ThreadMilling. Then I saved it.

 

I opened the .tcl file, and found the corresponding event handlers are named as:

 

MOM_threadmilling

MOM_threadmilling_move

 

The cases of the letters T and M don't match. That is why the cycle was not run.

 

Kai

Re: Custom Cycle

hi, XueKai,

May i know the revision of your UG NX? Thanks.


Learn online





Solution Information