Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram Chart on Winforms (Read 2415 times)
Sujay
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Sep 3rd, 2014
Diagram Chart on Winforms
Sep 3rd, 2014 at 3:01am
Print Post  
Hi ,

I want to display shapes in the viewer in Winforms, but at the time of execution I am seeing an error - please refer attachment . I have only dragged the diagram component on to Winforms,

I may be wrong, what I want to do is to draw a network diagram , using shapes from a Visio Stencil.

Also can you point me to step by step instruction, on how to start working with the diagramming component .eg. Drawing shapes and displaying them in the viewer. Adding custom shapes


If I have missed something please correct me. Also errors should not show up, it shall be better if appropriate messsages are shown .

Thanks
Sujay

  

mindfusion_error.jpg (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram Chart on Winforms
Reply #1 - Sep 3rd, 2014 at 5:50am
Print Post  
Hi,

Are you getting that message immediately when the diagram is dropped on the form, or after rebuilding? Also have you changed any properties of the Diagram object? This could be happening if there are two versions of the diagramming.dll loaded in Visual Studio, e.g. from both CLR2 and CLR4 builds. The converter will return false it VS tries to pass a CLR2 Shape instance to a CLR4 ShapeConverter or the other way around. If you have added the diagamming.winforms.dll reference manually, try removing it and adding again from the mindfusion/diagramming/CLR folder that matches your intended .NET version.

Quote:
I may be wrong, what I want to do is to draw a network diagram , using shapes from a Visio Stencil.


There is no support for loading stencils from Visio at this time. You can use stock shape definitions in our own format exposed through the Shapes class, or use SVG drawings as nodes via the SvgNode class.

Quote:
Also can you point me to step by step instruction, on how to start working with the diagramming component .eg. Drawing shapes and displaying them in the viewer.


You can find some guides here:

http://www.mindfusion.eu/onlinehelp/flowchartnet/index.htm?Getting_Started.htm
http://www.mindfusion.eu/onlinehelp/flowchartnet/index.htm?FlowChart_NET_Tutoria...
http://www.mindfusion.eu/onlinehelp/flowchartnet/Your_first_FlowChart_diagram.ht...
http://www.mindfusion.eu/onlinehelp/flowchartnet/Drawing%20of%20shape%20nodes.ht...

Quote:
Adding custom shapes


You can find examples here:

http://www.mindfusion.eu/onlinehelp/flowchartnet/Creating_custom_item_types.htm
http://www.mindfusion.eu/onlinehelp/flowchartnet/index.htm?T_MindFusion_Diagramm...
http://mindfusion.eu/blog/?p=507

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Sujay
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Sep 3rd, 2014
Re: Diagram Chart on Winforms
Reply #2 - Sep 5th, 2014 at 5:21am
Print Post  
Hi ,

I drag the component in my Winforms, dont make any change, and do a Rebuild , and I see the error

I dont think I should get an error. Thanks for the links, I shall have a look into it

How do I display SVG drawings as nodes . Can you provide a sample please.

Thanks
Sujay
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram Chart on Winforms
Reply #3 - Sep 5th, 2014 at 8:23am
Print Post  
Just to verify the Mindfusion assemblies used are from same version, try closing the form, removing mindfusion.* references from Project/References in Solution explorer, and from the project context menu choose Add Reference and add all mindfusion.* files from /Program Files/MindFusion/CLR4 subfolder. Does it still fail to compile then?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint