post processor to Get tool data from file.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, is there script text data extracting from file?
I've got a file containing all current tool data array.
It always placed c:\M1\Tools.txt
I want post processor get data from that file and fill the corresponding lines. To be exact:
When I'm using tool tool_description = IMA 601 in Fusion360 post processsor script will search for that name in Tools.txt , if it's IMA 601 - then WKZR can be found in RADIUS column of the same line. WKZFAN in F_STD column of the same line. ans so on.
Here is a text block that I will get after post processor
Blue text - not changing
Red text - get from file Tools.txt and write values
[KAFRAE01]
AFB=1
AUF_KD_BEZIEHEN=0
AZ_2=AZ
BEZB=Aufruf Frдser
EBG=0
EBN=5
EVS=0.05
F=AUTO
FAN=AUTO
HPOS=-9999
KD=0
KFF=0
LGEAB=2*WKZR
LGEAN=2*WKZR
N=AUTO
STBA=0
SWKZID=IMA 601
THSP=0
TOMBA=1
TRKOR=2
TTZ=D-AZ
TYPAB=0
TYPAN=0
TYPEIN=0
WERKZEUGNAME=(NULL)
WKZA=30
WKZF=8000
WKZFAN=12000
WKZG=0
WKZI=5
WKZID=IMA 601
WKZL=150.45
WKZNL=47
WKZR=9.535
WKZS=18000
WKZTYP=8192
WKZZ=0
WZG=WKZOPT
X=10
Y=10
Z=-2
Tools.txt can be opened with Excel (see Screenshot) or text. All data in this array is separated by ;
for example WKZL data can be found in LAENGE column.
column name find data in column
TOM_ID ---> WKZID=
RADIUS ---> WKZR=
LAENGE ---> WKZL=
WKZNL ---> WKZNL=
F_STD ---> WKZFAN= 8000 (for example from F_STD column)
F_INS_MAT ---> WKZF=
WKZA ---> WKZA=
WKZI ---> WKZA=
SWKZID ---> WKZID=
Maybe there is a such script in some post processor already. Thank you for your hints in advance, I'll be much appreciated