Hello!
We have a scripting solution, which generates content for diagrams. The generated diagram content is published to a view model, which is bound to a RadDiagram component that is opened inside a docked RadPane by the script. The purpose of the script is to generate a possibly large number of diagrams, and then export each diagram to a file. What happens upon script execution is that each generated diagram is correctly opened in a docked RadPane, but the ExportToFile -method only works for the diagram that is created as the last one, ie the one that exists on the last opened RadPane, ie the only one that is actually visible. All other diagrams are generated as empty files.
In the script, the export command is invoked immediately after the RadDiagram has been shown, and specifically (hopefully) before the next RadDiagram (that covers the previous one) is being generated, so the diagram to be exported should be visible when the export command is invoked.
I found other threads having to do with the diagram control not being part of the visual tree, and this may be a related issue.
Help appreciated,
Kim Johnsson
We have a scripting solution, which generates content for diagrams. The generated diagram content is published to a view model, which is bound to a RadDiagram component that is opened inside a docked RadPane by the script. The purpose of the script is to generate a possibly large number of diagrams, and then export each diagram to a file. What happens upon script execution is that each generated diagram is correctly opened in a docked RadPane, but the ExportToFile -method only works for the diagram that is created as the last one, ie the one that exists on the last opened RadPane, ie the only one that is actually visible. All other diagrams are generated as empty files.
In the script, the export command is invoked immediately after the RadDiagram has been shown, and specifically (hopefully) before the next RadDiagram (that covers the previous one) is being generated, so the diagram to be exported should be visible when the export command is invoked.
I found other threads having to do with the diagram control not being part of the visual tree, and this may be a related issue.
Help appreciated,
Kim Johnsson