Page Index Toggle Pages: 1 ... 19 20 [21]  Send TopicPrint
Locked Topic Link between two nodes (Read 129106 times)
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #300 - Sep 18th, 2014 at 6:47am
 
Stoyo wrote on Sep 12th, 2014 at 2:20pm:
Try this version, it should export individual diagrams faster:
https://mindfusion.eu/_beta/netdiag531.zip

The 300 nodes + 1200 links one takes about 30 seconds now, so if you export all diagrams as individual files the 104 files should finish in less than an hour (excluding load and layout times). We can't see any way to reduce the memory footprint, so it will still slow down if you try to export a 100-page DiagramDocument once the in-memory XML document gets very large and the system starts paging.


I am using this version but still issue is not solved Its taking 18 hours and after that throws exception :
Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #301 - Sep 19th, 2014 at 9:33am
 
It took about 50 minutes in our test to export separate files per each diagram. If the same takes 18 hours for you, probably you have CPU throttling enabled in IIS:
http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-cpu-throttling-sa...
http://blogs.iis.net/shauneagan/archive/2012/03/15/cpu-throttling-iis-7-vs-iis-8...

We've also tried exporting a DiagramDocument with all pages to the same VDX, which keeps all diagrams and XML in RAM, and at the 20th page the process took 1GB of RAM, so you will probably reach the max Windows address space of 2 GB at about the 40th page and won't be able to export all files to same VDX anyway.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #302 - Sep 24th, 2014 at 1:59pm
 
This new build now takes about 5 seconds to export a 1500-items diagram to VDX:
https://mindfusion.eu/_beta/netdiag531.zip

On our test system it takes less than 8 minutes to export the 104 pages separately:
Code
Select All
// load time: 00:02:08.9703767
// layout time: 00:08:15.4793398
// export time: 00:07:22.7483237

var document = new DiagramDocument();

var startTime = DateTime.Now;
var dirInfo = new DirectoryInfo(@"C:\temp\XML");
foreach (var fileInfo in dirInfo.GetFiles("*.xml"))
{
	var page = new DiagramPage();
	page.LoadFromXml(fileInfo.FullName);
	document.Pages.Add(page);
	page.Title = fileInfo.Name;
}
Debug.WriteLine("load time: " + (DateTime.Now - startTime));

startTime = DateTime.Now;
foreach (var page in document.Pages)
{
	var dl = new DecisionLayout();
	dl.Orientation = MindFusion.Diagramming.Layout.Orientation.Vertical;
	dl.HorizontalPadding = 10;
	dl.VerticalPadding = 10;
	dl.Arrange(page);
}
Debug.WriteLine("layout time: " + (DateTime.Now - startTime));

startTime = DateTime.Now;
foreach (var page in document.Pages)
	new VisioExporter().Export(page, @"C:\test.vdx");
Debug.WriteLine("export time: " + (DateTime.Now - startTime)); 



You still won't be able to fit all 104 diagrams and Visio XML in the process memory, so if you need them merged in the same VDX, try using the .NET XML API to create it. E.g. you could export the pages separately, unload all diagrams to free memory, then copy individual Page element from each exported file to a merged file under the parent <Pages> element.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #303 - Oct 20th, 2014 at 5:56am
 
Have you added support for hyperlink in VISIO ?

Stoyo wrote on Aug 14th, 2014 at 11:27am:
No, here's what I said previously:
http://mindfusion.eu/Forum/YaBB.pl?num=1400652920/261#261

Until we add support for hyperlinks to VisioExporter you won't be able to implement them via diagram properties, you'll have to add respective Visio XML elements to the VDX file instead.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #304 - Oct 21st, 2014 at 8:31am
 
The latest build here supports hyperlinks:
https://mindfusion.eu/_beta/netdiag.5.4.zip

Set node.HyperLink to either a page name or a web address and VisioExporter will generate appropriate XML markup.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 19 20 [21] 
Send TopicPrint