Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: load tbcload.dll file output

Experimenter
Experimenter

I finally got it working with tbcload. Keynote is that you have to specify the path to the dll-file and the sourced tbc-file.

 

Re: load tbcload.dll file output

Would you be able to share the code?

Re: load tbcload.dll file output

Experimenter
Experimenter

The post-processor files would be :

somename.def

somename.tcl

somename.tbc (the compiled version of the original tcl, keep a copy of the original !!!!)

 

The original somename.tcl would then be replaced by some lines that load the tbc file and the dll.

My tcl script looks like this:

 -------begin somename.tcl script

 

# Startscript for compiled Post-Processors"
# JLo 9-10-2017

 

set tcl_version [info patchlevel]
set path_script [file dirname [info script]]
set script_name [file tail [info script]]
set root_name [file rootname $script_name]
set compiled_library tbcload17.dll

#Load TBCload
load "${path_script}/${compiled_library}"

 

#Load compiled source
source "${path_script}/${root_name}.tbc"

 

----end somename.tcl script

Re: load tbcload.dll file output

Thank you for the kind reply.

 

Would you also be able to provide some information on how to compile a tcl file to a tbc file?  I am using NX7.5 and here is what I did for my post

 

------------------------------------

epost.pui

epost.def

epost.tcl

------------------------------------

 

1) install tclpro 1.4.

2) open cmd and change the directory to "C:\Program Files\TclPro1.4\win32-ix86\bin". This is where the "procomp.exe" exists. 

3) in cmd, I write:

procomp.exe  -out epost.tbc  epost.tcl

Note that I also put epost.tcl in the procomp.exe path and I have created a epost.tbc(a blank file) in this path as well.

4) Now I copy epost.tcl, epost.tbc, epost.def, epost.pui and tbcload13.dll to my postprocessor folder.

5) I change ALL the content of epost.tcl to your code.

 

The result is this:

Capture.PNG

 

Did you compile the WHOLE post tcl file or just a portion of the tcl file?

Re: load tbcload.dll file output

Phenom
Phenom

Hi,

Be careful , if your tcl version is in 64bit , your dll tbcload13.dll must match...

Production: NX11.0.2.7,VERICUT 8.1.2
Development: Tcl/Tk, Gnuplot
www.adgroupe.com

Re: load tbcload.dll file output

Experimenter
Experimenter

I use Tclcompiler84 from activestate. This is the successor of tclpro.

I compile the whole tcl file. The headeroutput looks like this:

 

########################## TCL Event Handlers ##########################
#
# Hermle_C20-v2.05.tcl - 5_axis_dual_table
#
# This is a 5-Axis Milling Machine With
# Dual Rotary Tables.
#
# Created by .... @ vrijdag 6 april 2018 9:11:53 West-Europa (zomertijd)
# with Post Builder version 11.0.2.
#
########################################################################
# TclPro::Compiler::Include

if {[catch {package require tbcload 1.6} err] == 1} {
return -code error "[info script]: The TclPro ByteCode Loader is not available or does not support the correct version -- $err"
}
tbcload::bceval {
TclPro ByteCode 2 0 1.7 8.4
550 0 10652 1000 0 0 4772 0 7 550 550 -1 -1
10652
&<rr!`)!!!w03!!%?iW!w<rr!0QrW!%E89v#!!!!('!!!/i8X!963!!*|AX!)iOQ##!!!!,'
!!!-K3!!2D(qv?FA*'&'!!!/Q3!!+cJX!.A-0%#!!!!+'!!!1W3!!-oyX!,/LNw2fSs!@btt
!#!!!!2'!!!3|3!!8h^qv)63!!5JPY!4v&*'963!!7VbY!64y`'963!!9btY!8F=B(963!!;

Learn online





Solution Information