Commit bc75cc4c authored by Claes Sjofors's avatar Claes Sjofors

Graph width and height stored in the beginning of the .pwg file to be able to...

Graph width and height stored in the beginning of the .pwg file to be able to create the window with the correct size
parent d0645557
#
# Script to export all classgraphs to java
#
#
#
function int process( string graph)
string subgraph = "pwr_smallbuttoncenter";
printf( "-- Processing %s...\n", graph);
open 'graph'
# SetExtern( "pwr_motorman");
# save
# open 'graph'
# SetIntern( "pwr_motorman");
# save
set zoom/reset
save
endfunction
main()
disable log
process( "pwr_c_abb_acc800.pwg");
process( "pwr_c_abb_acs800_1param.pwg");
process( "pwr_c_abb_acs800_1.pwg");
process( "pwr_c_abb_acs800_1sim.pwg");
process( "pwr_c_abb_acs800fanaggr10.pwg");
process( "pwr_c_abb_acs800fanaggr11.pwg");
process( "pwr_c_abb_acs800fanaggr12.pwg");
process( "pwr_c_abb_acs800fanaggr13.pwg");
process( "pwr_c_abb_acs800fanaggr14.pwg");
process( "pwr_c_abb_acs800fanaggr15.pwg");
process( "pwr_c_abb_acs800fanaggr16.pwg");
process( "pwr_c_abb_acs800fanaggr17.pwg");
process( "pwr_c_abb_acs800fanaggr18.pwg");
process( "pwr_c_abb_acs800fanaggr19.pwg");
process( "pwr_c_abb_acs800fanaggr1.pwg");
process( "pwr_c_abb_acs800fanaggr20.pwg");
process( "pwr_c_abb_acs800fanaggr21.pwg");
process( "pwr_c_abb_acs800fanaggr22.pwg");
process( "pwr_c_abb_acs800fanaggr23.pwg");
process( "pwr_c_abb_acs800fanaggr2.pwg");
process( "pwr_c_abb_acs800fanaggr3.pwg");
process( "pwr_c_abb_acs800fanaggr4.pwg");
process( "pwr_c_abb_acs800fanaggr5.pwg");
process( "pwr_c_abb_acs800fanaggr6.pwg");
process( "pwr_c_abb_acs800fanaggr7.pwg");
process( "pwr_c_abb_acs800fanaggr8.pwg");
process( "pwr_c_abb_acs800fanaggr9.pwg");
process( "pwr_c_abb_acs800fanaggr.pwg");
process( "pwr_c_abb_acs800motoraggr10.pwg");
process( "pwr_c_abb_acs800motoraggr11.pwg");
process( "pwr_c_abb_acs800motoraggr12.pwg");
process( "pwr_c_abb_acs800motoraggr13.pwg");
process( "pwr_c_abb_acs800motoraggr14.pwg");
process( "pwr_c_abb_acs800motoraggr15.pwg");
process( "pwr_c_abb_acs800motoraggr16.pwg");
process( "pwr_c_abb_acs800motoraggr17.pwg");
process( "pwr_c_abb_acs800motoraggr18.pwg");
process( "pwr_c_abb_acs800motoraggr19.pwg");
process( "pwr_c_abb_acs800motoraggr1.pwg");
process( "pwr_c_abb_acs800motoraggr20.pwg");
process( "pwr_c_abb_acs800motoraggr21.pwg");
process( "pwr_c_abb_acs800motoraggr22.pwg");
process( "pwr_c_abb_acs800motoraggr23.pwg");
process( "pwr_c_abb_acs800motoraggr2.pwg");
process( "pwr_c_abb_acs800motoraggr3.pwg");
process( "pwr_c_abb_acs800motoraggr4.pwg");
process( "pwr_c_abb_acs800motoraggr5.pwg");
process( "pwr_c_abb_acs800motoraggr6.pwg");
process( "pwr_c_abb_acs800motoraggr7.pwg");
process( "pwr_c_abb_acs800motoraggr8.pwg");
process( "pwr_c_abb_acs800motoraggr9.pwg");
process( "pwr_c_abb_acs800motoraggr.pwg");
process( "pwr_c_abb_acs800motoraggrsim.pwg");
process( "pwr_c_abb_acs800pump1.pwg");
process( "pwr_c_abb_acs800pump2.pwg");
process( "pwr_c_abb_acs800pumpaggr10.pwg");
process( "pwr_c_abb_acs800pumpaggr11.pwg");
process( "pwr_c_abb_acs800pumpaggr12.pwg");
process( "pwr_c_abb_acs800pumpaggr13.pwg");
process( "pwr_c_abb_acs800pumpaggr14.pwg");
process( "pwr_c_abb_acs800pumpaggr15.pwg");
process( "pwr_c_abb_acs800pumpaggr16.pwg");
process( "pwr_c_abb_acs800pumpaggr17.pwg");
process( "pwr_c_abb_acs800pumpaggr18.pwg");
process( "pwr_c_abb_acs800pumpaggr19.pwg");
process( "pwr_c_abb_acs800pumpaggr1.pwg");
process( "pwr_c_abb_acs800pumpaggr20.pwg");
process( "pwr_c_abb_acs800pumpaggr21.pwg");
process( "pwr_c_abb_acs800pumpaggr22.pwg");
process( "pwr_c_abb_acs800pumpaggr23.pwg");
process( "pwr_c_abb_acs800pumpaggr2.pwg");
process( "pwr_c_abb_acs800pumpaggr3.pwg");
process( "pwr_c_abb_acs800pumpaggr4.pwg");
process( "pwr_c_abb_acs800pumpaggr5.pwg");
process( "pwr_c_abb_acs800pumpaggr6.pwg");
process( "pwr_c_abb_acs800pumpaggr7.pwg");
process( "pwr_c_abb_acs800pumpaggr8.pwg");
process( "pwr_c_abb_acs800pumpaggr9.pwg");
process( "pwr_c_abb_acs800pumpaggr.pwg");
process( "pwr_c_abb_diffpressuresensor_265ds1.pwg");
process( "pwr_c_abb_diffpressuresensor_265ds2.pwg");
process( "pwr_c_abb_diffpressuresensor_265ds.pwg");
process( "pwr_c_abb_flowsensor_fxe40001.pwg");
process( "pwr_c_abb_flowsensor_fxe40002.pwg");
process( "pwr_c_abb_flowsensor_fxe4000.pwg");
process( "pwr_c_abb_pressuresensor_265gs1.pwg");
process( "pwr_c_abb_pressuresensor_265gs2.pwg");
process( "pwr_c_abb_pressuresensor_265gs.pwg");
process( "pwr_c_abb_tempsensor_tf121.pwg");
process( "pwr_c_abb_tempsensor_tf122.pwg");
process( "pwr_c_abb_tempsensor_tf12.pwg");
endmain
This diff is collapsed.
#
# Script to export all classgraphs to java
#
#
#
function int process( string graph)
string subgraph = "pwr_smallbuttoncenter";
printf( "-- Processing %s...\n", graph);
open 'graph'
#SetExtern( "pwr_mbblockevents");
#save
#open 'graph'
#SetIntern( "pwr_mbblockevents");
set zoom/reset
save
endfunction
main()
disable log
process( "pwr_c_eurotherm_tc3001aggr1.pwg");
process( "pwr_c_eurotherm_tc3001aggr2.pwg");
process( "pwr_c_eurotherm_tc3001aggr3.pwg");
process( "pwr_c_eurotherm_tc3001aggr.pwg");
process( "pwr_c_eurotherm_tc3001aggrsim.pwg");
process( "pwr_c_eurotherm_tc3001_param.pwg");
process( "pwr_c_eurotherm_tc3001.pwg");
process( "pwr_c_eurotherm_tc3001sim.pwg");
process( "pwr_c_sew_movidrive_1.pwg");
process( "pwr_c_sew_movidrive_1sim.pwg");
endmain
0! DefaultWidth 802
0! DefaultHeight 660
199
!/**
! Fan2
......@@ -35,8 +37,8 @@
111 1.2
116 0
117 0
118 132
119 114
118 113
119 102
120 1
121 Claes context
122 0
......
0! DefaultWidth 402
0! DefaultHeight 370
199
!/**
! Fan2
......@@ -24,18 +26,18 @@
101 20
102 -2
103 -34
104 3.48974
136 3.48974
104 3.89525
136 3.89525
105 100
106 0
107 -5
107 -6
108 22.9465
109 2.8
110 13.4679
111 1.2
116 0
117 0
118 137
118 131
119 118
120 1
121 Claes context
......
0! DefaultWidth 392
0! DefaultHeight 660
199
!/**
! Fan2
......@@ -24,8 +26,8 @@
101 20
102 -13
103 5
104 3.48974
136 3.48974
104 3.50271
136 3.50271
105 100
106 -2
107 0
......@@ -35,8 +37,8 @@
111 1.2
116 0
117 0
118 137
119 119
118 118
119 107
120 0
121 Claes context
122 0
......
0! DefaultWidth 392
0! DefaultHeight 610
199
!/**
! Fan2
......@@ -24,8 +26,8 @@
101 20
102 -23
103 -5
104 3.48974
136 3.48974
104 3.73349
136 3.73349
105 100
106 -4
107 0
......@@ -35,8 +37,8 @@
111 1.2
116 0
117 0
118 137
119 118
118 126
119 113
120 1
121 Claes context
122 0
......
0! DefaultWidth 392
0! DefaultHeight 625
199
!/**
! Fan2
......@@ -24,8 +26,8 @@
101 20
102 31
103 -13
104 3.48974
136 3.48974
104 3.59803
136 3.59803
105 100
106 5
107 -2
......@@ -35,8 +37,8 @@
111 1.2
116 0
117 0
118 137
119 118
118 122
119 109
120 0
121 Claes context
122 0
......
0! DefaultWidth 392
0! DefaultHeight 576
199
!/**
! Fan2
......@@ -24,8 +26,8 @@
101 20
102 0
103 24
104 3.48974
136 3.48974
104 3.89525
136 3.89525
105 100
106 0
107 4
......@@ -35,7 +37,7 @@
111 1.2
116 0
117 0
118 137
118 131
119 119
120 0
121 Claes context
......
0! DefaultWidth 333
0! DefaultHeight 290
199
!/**
! Fan2
......@@ -24,18 +26,18 @@
101 20
102 -24
103 24
104 3.16291
136 3.16291
104 3.49244
136 3.49244
105 100
106 -3
107 -7
106 -4
107 -8
108 16.3616
109 0.151105
110 11.4671
111 -2.32358
116 0
117 10
118 123
117 12
118 118
119 118
120 0
121 Claes context
......
0! DefaultWidth 333
0! DefaultHeight 517
199
!/**
! Fan2
......@@ -24,18 +26,18 @@
101 20
102 -23
103 -68
104 3.48974
136 3.48974
104 3.89525
136 3.89525
105 100
106 -4
107 -11
107 -13
108 16.3616
109 0.151105
110 22.8265
111 -2.32358
116 0
117 0
118 137
118 131
119 118
120 0
121 Claes context
......
0! DefaultWidth 802
0! DefaultHeight 630
199
!/**
! Fan2
......@@ -24,8 +26,8 @@
101 20
102 -26
103 26
104 3.47953
136 3.47953
104 3.7475
136 3.7475
105 100
106 -4
107 4
......@@ -35,8 +37,8 @@
111 1.2
116 0
117 0
118 136
119 119
118 125
119 115
120 1
121 Claes context
122 0
......
0! DefaultWidth 333
0! DefaultHeight 466
199
!/**
! Fan2
......@@ -24,18 +26,18 @@
101 20
102 -73
103 -130
104 3.48974
136 3.48974
104 3.89525
136 3.89525
105 100
106 -12
107 -22
106 -14
107 -25
108 16.3616
109 0.151105
110 20.492
111 -2.32358
116 0
117 0
118 136
118 131
119 118
120 0
121 Claes context
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment