Added DATA identifier to the headers
This commit is contained in:
parent
02e908ae18
commit
bd594136a0
|
@ -78,7 +78,7 @@ def load():
|
|||
s.setAlignment('A1:A1', 'center', 'keep')
|
||||
s.setStyle('A1:A1', 'bold', 'add')
|
||||
s.setStyle('A1:A1', 'underline', 'add')
|
||||
s.set("A1", "SHIP")
|
||||
s.set("A1", "SHIP DATA")
|
||||
s.set("A2", "ship")
|
||||
s.set("A3", ship.Label)
|
||||
s.set("B2", "internal ref")
|
||||
|
@ -90,7 +90,7 @@ def load():
|
|||
s.setAlignment('A4:A4', 'center', 'keep')
|
||||
s.setStyle('A4:A4', 'bold', 'add')
|
||||
s.setStyle('A4:A4', 'underline', 'add')
|
||||
s.set("A4", "WEIGHTS")
|
||||
s.set("A4", "WEIGHTS DATA")
|
||||
s.set("A5", "weight")
|
||||
s.set("B5", "internal ref")
|
||||
for i in range(len(ship.Weights)):
|
||||
|
@ -104,11 +104,11 @@ def load():
|
|||
s.setAlignment('A{0}:A{0}'.format(6 + len(ship.Weights)), 'center', 'keep')
|
||||
s.setStyle('A{0}:A{0}'.format(6 + len(ship.Weights)), 'bold', 'add')
|
||||
s.setStyle('A{0}:A{0}'.format(6 + len(ship.Weights)), 'underline', 'add')
|
||||
s.set("A{}".format(6 + len(ship.Weights)), "TANKS")
|
||||
s.set("A{}".format(6 + len(ship.Weights)), "TANKS DATA")
|
||||
s.set("A{}".format(7 + len(ship.Weights)), "tank")
|
||||
s.set("B{}".format(7 + len(ship.Weights)), "internal ref")
|
||||
s.set("C{}".format(7 + len(ship.Weights)), "Fluid density [kg/m^3]")
|
||||
s.set("D{}".format(7 + len(ship.Weights)), "Filling ratio")
|
||||
s.set("D{}".format(7 + len(ship.Weights)), "Filling ratio (interval [0.0,1.0])")
|
||||
for i in range(len(ship.Tanks)):
|
||||
tank = App.activeDocument().getObject(ship.Tanks[i])
|
||||
s.set("A{}".format(i + 8 + len(ship.Weights)), tank.Label)
|
||||
|
|
Loading…
Reference in New Issue
Block a user