I want to export one or more diagrams to a Visual Paradigm Project in my plugin and then import it back to another project
How to do that?
Thanks in advance
Thank you for your inquiry. I have forwarded your question to our team to study. When there is a reply, I will let you know.
Currently, we only support exporting the entire project as XML via:
We will consider supporting the chosen diagrams. I will post again when it’s supported.
Well, thank you
Can you please give us an example on how to export the XML of all the project.
I thought that the “project” argument in exportXML is of type IProject. so i did somthing like this:
IProject project = ApplicationManager.instance().getProjectManager().getProject();
ApplicationManager.getModelConvertionManager().exportXML(project, new File("…"))
but project is of type “component” i don’t understand this.
and any news about exporting single diagram as XML ?
You don’t need to pass the project. Just pass the file would be fine.
The suggestion about exporting a single diagram as XML is still pending to be reviewed. I will post here when there is any update.
Hey Jick, thanks for your replay.
When I pass the path to the VP project file, it displays a message saying that there is no diagram. But my project does.
The path parameter is the output path of the XML file, not the project file. The API helps to export your current project to the path specified, as XML…
Hey Jick, Thanks a lot
You’re welcome. Feel free to contact us again if you have any other questions.