Bug fixed in V 10.2
In DynamicModule
, the result is to show a panel with a flowchart and a Piechart
. But when I export the dynamic result in a CSV file, the Piechart
will no longer work. But the flowchart is still working.
To be more precise for discription of the question, I would like to mean that the Piechart
works well,
but when I clicked the Export
, the Piechart
will look like this.
Here, I have simplified the code uploaded to faciliate the comprehension of the code. Thanks.
DynamicModule[{FlowratePAPC = 100, TemperaturePAPC = 350,
heatPAPCsensible, heatbalance},
heatbalance = {Button["Primary Air",
CreateDialog[
Column[{Row[{Style["Flow rate(kg/hr)", Bold, 14],
InputField[Dynamic[FlowratePAPC],
ContinuousAction -> True]}],
Row[{Style["Flow temperature(\[Degree]C)", Bold, 14],
InputField[Dynamic[TemperaturePAPC],
ContinuousAction -> True]}]}]]] ->
Style["Precalcinator", Bold, 14]};
Panel[Column[{LayeredGraphPlot[heatbalance, VertexLabeling -> True],
Dynamic@PieChart3D[{Legended[heatPAPCsensible[],
Style["PCPA Sensible", Bold, 12, Black]]}],
Button["Export",
Export[SystemDialogInput["FileSave",
"Cement project data.csv"], {heatPAPCsensible[]}],
Method -> "Queued"]}]],
Initialization :> ({heatPAPCsensible[] :=
ThermodynamicData["Air",
"Enthalpy", {"Temperature" ->
Quantity[TemperaturePAPC, "Kelvins"],
"Pressure" -> Quantity[101325, "Pascals"]}]*
Quantity[FlowratePAPC, "kg"]/Quantity[1, "hour"]})]