Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Visio import for BPMN templates (Read 1735 times)
Asha Shaik
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 6
Location: Chennai
Joined: Jun 13th, 2013
Visio import for BPMN templates
Feb 17th, 2017 at 11:08am
Print Post  
Hi Team,
I have query to understand if Mindfusion.Diagramming.Wpf.VisioImport dll will import any visio shape of any template.
If it is not so, then is there any other dll to import any kind of shape.
My current scenario is importing BPMN shapes.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Visio import for BPMN templates
Reply #1 - Feb 20th, 2017 at 8:56am
Print Post  
Hi,

It only imports shapes from basic flowchart / block diagram Visio stencils. There's a Visio2013Importer.ImportItem event you could handle to map other shapes -

Code
Select All
var importer = new Visio2013Importer();
importer.ImportItem += (s, args) =>
{
	Debug.WriteLine(args.MasterName);

	if (args.MasterName == "...")
	{
		var node = (ShapeNode)args.Item;
		node.Shape = Shape.FromId("...");
	}
};
importer.Import("diag1.vsdx", diagram); 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint