Following post will put some light into tpaedit dxftocad processor. This convertor is used in Felder Group and allow user to load DXF file and generate TCN file. TCN file is specific NC file used by Albatros or whot ever…it contain code for machine.. code looks like this
SIDE#1{
W#89{ ::WTs WS=1 WN=1 #1=352.353 #2=0.0 #3=-8 #205=1001 #40=1 #36=7 #9510=1 }W
W#2201{ ::WTl #8015=1 #1=0.0 #2=14.634 }W
W#2201{ ::WTl #8015=1 #1=0.0 #2=30.366 }W
W#2201{ ::WTl #8015=1 #1=-20.0 #2=0.0 }W
W#89{ ::WTs WS=2 WN=1 #1=352.353 #2=0.0 #3=-16 #205=1001 #40=1 #36=7 #9510=1 }W
W#2201{ ::WTl #8015=1 #1=0.0 #2=14.634 }W
W#2201{ ::WTl #8015=1 #1=0.0 #2=30.366 }W
W#2201{ ::WTl #8015=1 #1=-20.0 #2=0.0 }W
W#89{ ::WTs WS=3 WN=1 #1=352.353 #2=0.0 #3=-8 #205=1001 #40=1 #36=0.5 #9510=1 }W
W#2201{ ::WTl #8015=1 #1=0.0 #2=14.634 }W
W#2201{ ::WTl #8015=1 #1=0.0 #2=30.366 }W
W#2201{ ::WTl #8015=1 #1=-20.0 #2=0.0 }W
There is details and requirment for DXF to by converted as user want and minimalize manual/other changes of code.
DXF LAYER NAME -Base on layer name you can force some setup parametes e.g. PFT1001Z-8K2D1 means MILL SETUP Tool ID = 1001 Z = -8 Korecition = right with offset D = 1. This will generate SETUP with -8 as deep of cut.
POLYLINE – with correct LAYERNAME you can create working profile, Drawing order – vertex order is same like tool move.
POLILINE with Thickness -Must have some LAYER NAME. Remove Z parameter. Thicness allow to control depth of cut.
3DPLINE – Same like POLYLINE, but remove Z parameter and must change configuratio of to DXF to use 3D coord
BLOCKS – Block name is is used to call subprogram. First setup point in subprogram should by used as BLOCK reference point. You can select r0,r1… parameters via adding attribude (max 26, atribute name should by one char “T” ..) to block. Number 8500 = r0
I DONT FIND WAY HOW TO CHANGE WORK ORDER ENTITIES ARE CUTTED IN SAME ORDER HOW YOU DRAW THEM