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

BLK FORM - heidenhain .TCL error

[ Edited ]


I have some problem with my inner TCL variable.

TNC_UDE.cdl file for blk form is attached into NX (ude named as: Utworz_blok_dla_TNC)

I have already finished all control syntax in postbuilder and still getting error with one variable.. dont know what Iam doing wrong


Values of PB_CMD below:

global mom_czy_byl_block
MOM_do_template start_block

MOM_do_template end_block


Variable is set on global before the procedure set global.


And as you see in my attach picture JPG, when i set two points of blank and after this I tried to post my cam operation - still getting same error can't read "mom_czy_byl_block": no such variable


***** A TCL Error Has Occurred *****
Event Handler: C:\Users\Desktop\Block_Form\test_post\get_balnk.tcl
Event: MOM_start_of_path
Error Info: can't read "mom_czy_byl_block": no such variable while executing
Error Code: NONE


Inside postbuilder, I proper set those of two templates:


BLOCK_TEMPLATE start_block


if something has been missed - could You show me what I need to do in next step ???

Engineering >> NX10.0 Performance in the making

Re: BLK FORM - heidenhain .TCL error

Do you have a procedure for the UDE called MOM_Utworz_blok_dla_TNC?

If you don't have that, the UDE settings are not retrieved from the UDE.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 ( | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: BLK FORM - heidenhain .TCL error

CamExplorer, I'm happy that you're reusing procs from my postprocessor.

But I think, it would be much better to contact author of this post directly.

You will find my name in the header of the *.tcl file.


As I remember, source of missing procedure is encrypted, so you can't read it with notepad.

Marek Pawlus, NCmatic

Production: NX 11.0.1
Development: C#, Tcl/Tk, CSE

Re: BLK FORM - heidenhain .TCL error

[ Edited ]

Ok, understand now.

No I dont have this MOM ude procedure Smiley Sad


Is there any possible way to copy procedure from TNC_UDE.cdl file and paste it to postbuilder in machine control (green label) as Create New Machine Control Event ?


Hey Marek, I get this ude.cdl from my friend - I found this proc in .tcl & .def files. Iam sorry if Iam sharing whith this without prior consultation with You

Engineering >> NX10.0 Performance in the making
Accepted by topic author CamExplorer
‎12-16-2015 04:37 PM

Re: BLK FORM - heidenhain .TCL error

[ Edited ]

Problem solved.

Actually I made my own new UDE.cdl for start proc named as: Get_Blank, next I created in postbuilder my new machine control event - same as UDE.cdl with integer (status & points active) in NX. Global variable refers to beginning of post. Blank blocks are working corectly with proper sequencing in header of Start of Program.


New variables are set in MOM_proc global event handler. Added extra PB_CMD customs for getting cutting time to any separated operations from nx via one UDE as folder object>start event.


Post completed and plugged into my own kinematics for machine code simulation.

Thx for help.

Best regards,



Engineering >> NX10.0 Performance in the making

Learn online

Solution Information