alut je vois dans cet forum que tu as déjà rencontré mon problèlme est ce que tu peux m'aider STP
j'essaye de faire un programme dans matlab pour modifier un texte :
mon texte et le suivant
Code :
ce que je chercher à faire c'est de supprimer toutes les lines sauf les lines ou il ya "GOTO" et "FEDRAT"Code:$$ ----------------------------------------------------------------- $$ Generated on November-07-09 1:41:06 PM $$ CATIA APT VERSION 1.0 $$ ----------------------------------------------------------------- $$ Manufacturing Program.1 $$ Part Operation.1 $$*CATIA0 $$ MSYS/ $$ 0.00000 1.00000 0.00000 -95.00000 $$ -1.00000 0.00000 0.00000 63.50000 $$ 0.00000 0.00000 1.00000 40.00000 $$ ICAM - MM PPTABLE / ICAM_MM.pptable- V16.0541 $$ Part Operation : Part Operation.1 $$ Manufacturing Program : Manufacturing Program.1 PARTNO Manufacturing Program.1 UNITS/MM $$ Do not diagnose CYCLE/OFF when cycles are not active PPFUN/15,1318046,OFF $$ Do not diagnose FEDRAT when threading PPFUN/15,1319003,OFF $$ Ignore TLAXIS commands, use vector on GOTO instead SYN/'TLAXIS','$$*TLAXIS' $$ OPERATION NAME : Tool Change.1 $$ Start generation of : Tool Change.1 MULTAX/ON $$ TOOLCHANGEBEGINNING CUTTER/ 4.763000, 2.381500, 0.000000, 2.381500, 0.000000,$ 0.000000, 5.000000 $$ Select sequence 2 to include tool compensation (OSETNO) PPRINT TOOL: T1 End Mill D 10 LOADTL/1 COOLNT/ $$ TOOLCHANGEEND $$ End of generation of : Tool Change.1 PPRINT OPERATION: Multi-Axis Flank Contouring.1 $$ OPERATION NAME : Multi-Axis Flank Contouring.1 $$ Start generation of : Multi-Axis Flank Contouring.1 SPINDL/ 60.0000,RPM,CLW FEDRAT/ 2000.0000,MMPM GOTO / -4.00000, 81.50000, 7.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 2000.0000,MMPM GOTO / 1.00000, 81.50000, 7.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 2000.0000,MMPM GOTO / 1.00000, 81.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 30.0000,RPM,CLW FEDRAT/ 180.0000,MMPM GOTO / 1.00000, 76.50000, 2.13150,-1.000000, 0.000000, 0.000000 GOTO / 1.00000, 63.00000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 35.0000,RPM,CLW GOTO / 1.00000, 52.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 40.0000,RPM,CLW GOTO / 1.00000, 42.00000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 45.0000,RPM,CLW GOTO / 1.00000, 31.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 50.0000,RPM,CLW GOTO / 1.00000, 21.00000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 55.0000,RPM,CLW GOTO / 1.00000, 10.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 60.0000,RPM,CLW GOTO / 1.00000, 0.00000, 2.13150,-1.000000, 0.000000, 0.000000 GOTO / 1.00000, -5.00000, 2.13150,-1.000000, 0.000000, 0.000000 GOTO / 1.00000, -5.00000, 7.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 2000.0000,MMPM GOTO / -4.00000, -5.00000, 7.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 2000.0000,MMPM GOTO / -3.00000, 81.50000, 7.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 2000.0000,MMPM GOTO / 2.00000, 81.50000, 7.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 2000.0000,MMPM GOTO / 2.00000, 81.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 30.0000,RPM,CLW FEDRAT/ 180.0000,MMPM GOTO / 2.00000, 76.50000, 2.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 180.0000,MMPM GOTO / 2.00000, 63.00000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 35.0000,RPM,CLW GOTO / 2.00000, 52.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 40.0000,RPM,CLW GOTO / 2.00000, 42.00000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 45.0000,RPM,CLW GOTO / 2.00000, 31.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 50.0000,RPM,CLW GOTO / 2.00000, 21.00000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 55.0000,RPM,CLW GOTO / 2.00000, 10.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 60.0000,RPM,CLW GOTO / 2.00000, 0.00000, 2.13150,-1.000000, 0.000000, 0.000000 GOTO / 2.00000, -5.00000, 2.13150,-1.000000, 0.000000, 0.000000 GOTO / 2.00000, -5.00000, 7.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 2000.0000,MMPM GOTO / -3.00000, -5.00000, 7.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 2000.0000,MMPM GOTO / -2.00000, 81.50000, 7.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 2000.0000,MMPM GOTO / 3.00000, 81.50000, 7.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 2000.0000,MMPM GOTO / 3.00000, 81.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 30.0000,RPM,CLW FEDRAT/ 180.0000,MMPM GOTO / 3.00000, 76.50000, 2.13150,-1.000000, 0.000000, 0.000000 FEDRAT/ 180.0000,MMPM GOTO / 3.00000, 63.00000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 35.0000,RPM,CLW GOTO / 3.00000, 52.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 40.0000,RPM,CLW GOTO / 3.00000, 42.00000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 45.0000,RPM,CLW GOTO / 3.00000, 31.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 50.0000,RPM,CLW GOTO / 3.00000, 21.00000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 55.0000,RPM,CLW GOTO / 3.00000, 10.50000, 2.13150,-1.000000, 0.000000, 0.000000 SPINDL/ 60.0000,RPM,CLW GOTO / 3.00000, 0.00000, 2.13150,-1.000000, 0.000000, 0.000000
ça veut dire à la fin j'aurai un text ou il ya juste les valeurs de GOTO et FEDRAT
merci
zak
-----