Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic FlowChart: ArgumentOutOfRangeException Copy/Paste (Read 2169 times)
Shine1001
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Dec 15th, 2010
FlowChart: ArgumentOutOfRangeException Copy/Paste
Dec 17th, 2010 at 5:14pm
Print Post  
hi,

i use FlowChart.NET V5.0.2 - Professional and get an ArgumentOutOfRangeException if i move a copied Node with more than 3 Outgoing links.

I copy the Node with CopySelection and paste it with PasteSelection.

here the exception
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowChart: ArgumentOutOfRangeException Copy/Pa
Reply #1 - Dec 20th, 2010 at 9:03am
Print Post  
Hi,

Sorry I can't help you much with a three years old version. I can see our developers have added additional code to process anchor points for TableNodes since then - I could send you the related methods for you to merge into your copy of the code. Or perhaps try this as workaround after calling CopySelection:

Code
Select All
SelectionCopy copy = diagram.CopySelection(diagram, false, false);
for (int i = 0; i < copy.Items.Count; ++i)
{
	DiagramLink link = copy.Items[i] as DiagramLink;
	if (link == null)
		continue;
	DiagramLink originalLink = (DiagramLink)copy.OriginalItems[i];
	if (link.Origin is TableNode)
	{
		link.OriginIndex = originalLink.OriginIndex;
		link.OriginAnchor = originalLink.OriginAnchor;
	}
	if (link.Destination is TableNode)
	{
		link.DestinationIndex = originalLink.DestinationIndex;
		link.DestinationAnchor = originalLink.DestinationAnchor;
	}
} 



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


I love YaBB 1G - SP1!

Posts: 2
Joined: Dec 15th, 2010
Re: FlowChart: ArgumentOutOfRangeException Copy/Pa
Reply #2 - Dec 20th, 2010 at 2:37pm
Print Post  
hi Stoyan,

it works .. thanks a lot.

is it possible to upgrade my old version and what does it cost; is it 40% of 1150$?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: FlowChart: ArgumentOutOfRangeException Copy/Pa
Reply #3 - Dec 20th, 2010 at 4:01pm
Print Post  
Hi,

It's possible - log in or register at http://clientsarea.eu/ and you will find an upgrade code you can use to get the 60% discount.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint