Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Can't create links with new Flowchart 5.3 (Read 5745 times)
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Can't create links with new Flowchart 5.3
Jul 16th, 2009 at 9:25pm
Print Post  
Hi Stoyan,

I was trying to use the new Flowchart version to be able to use your great ( 8)) functionalities, but it introduces a bug.

I can't create links anymore. Just to remind you, I have only table nodes. They each have 2 columns with anchor points on the table node's borders 1 for each cell. When a link has been created (i.e. in diagram.LinkCreated), e.link.DestinationIndex is -1. It used to be the row's index. I can't get the information I need anymore... Do you have any idea why it does this? It didn't do it before I switch for the new Flowchart version and I didn't change anything... My old Flowchart version was a custom version that comes from somewhere in March (5.2.0.23855).

Thanks,
Marie
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't create links with new Flowchart 5.3
Reply #1 - Jul 17th, 2009 at 8:58am
Print Post  
Hi Marie,

I have added a LinkCreated handler to the Entities example, it works fine:

Code
Select All
private void diagram_LinkCreated(object sender, LinkEventArgs e)
{
	Debug.WriteLine(e.Link.OriginIndex);
	Debug.WriteLine(e.Link.DestinationIndex);
}
 



If you set your tables Scrollable and scroll the rows up or down, do the links move with them? If they stay where they were initially connected, that means they are not connected to a distinct row for some reason, but to the table as a node.

Stoyan
  
Back to top
 
IP Logged
 
marie
Full Member
***
Offline



Posts: 147
Joined: Nov 11th, 2008
Re: Can't create links with new Flowchart 5.3
Reply #2 - Oct 15th, 2009 at 2:17pm
Print Post  
Hi Stoyan,

Sorry for the late answer... It went out of my mind...

However, I now need to fix this problem as soon as possible Tongue.

I was mistaken. It is not the DestinationIndex that was -1 (it is fine), but the DestinationAnchor. The origin is as it was.

I was wondering if you had any idea why the DestinationAnchor is not set anymore in LinkCreated with the new version? It was working before but not anymore and nothing was changed (except for the Flowchart dlls).

I tried looking in my (huge) code to find if I did anything that could interfere but I didn't find anything, especially knowning that it used to work fine and that it is set automatically by your code. Do you have an idea of what could cause that (either from my side or yours)?

If I create nodes programatically, everything is fine. As you mentionned, the links stay connected even if I scroll. I can't test the scrolling with new UI links since I can't create links at all that way.

Thanks again for your help,
Marie

p.s. Another guy from my work will take over my task. He might be the one to answer future posts.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't create links with new Flowchart 5.3
Reply #3 - Oct 15th, 2009 at 2:50pm
Print Post  
Hi,

Please email to support@mindfusion.eu a test project that shows the problem.

Stoyan
  
Back to top
 
IP Logged
 
JC_Dude
YaBB Newbies
*
Offline



Posts: 5
Joined: Oct 15th, 2009
Re: Can't create links with new Flowchart 5.3
Reply #4 - Oct 15th, 2009 at 3:19pm
Print Post  
Hi Stoyan,

I work with Marie and I've been assigned the bug.

Unfortunately, I don't have a simple test program for you to repro the problem and I can't send you the problematic part of our projet since it's too big and confidential. But I can save the graph has an xml if it would help.

So, to resume the problem, inside LinkCreated, with 5.2.0, DestinationAnchor is set to the right value but when I switch to version 5.3.2, DestinationAnchor is always -1. Was there any changes in the way DestinationAnchor are set in LinkCreated between version 5.2.0 and 5.3.2 ?

Thanks,
JC

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't create links with new Flowchart 5.3
Reply #5 - Oct 15th, 2009 at 4:17pm
Print Post  
It would be best if you copy the relevant code from the LinkCreating, LinkCreated and ValidateAnchorPoint handler from your main project to a test project to isolate the problem, and email it to us.

Stoyan
  
Back to top
 
IP Logged
 
JC_Dude
YaBB Newbies
*
Offline



Posts: 5
Joined: Oct 15th, 2009
Re: Can't create links with new Flowchart 5.3
Reply #6 - Oct 21st, 2009 at 3:31pm
Print Post  
Hi Stoyan,

I ran a debug version of your libraries and while stepping through it I found the problem.

When the CompleteCreate function in DiagramLink is called, the variable routedWhileCreating is set to true because we have autoRoute to true. Doing so, the true branch of the if (routedWhileCreating) is taken and that path doesn't contain code to set the DestinationAnchor. But, the DestinationAnchor is set if routedWhileCreating is false and my links are creating as expected.

So my question is, is it up to me to set the DestinationAnchor if I have the autoRoute on ?

Thanks,
JC
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't create links with new Flowchart 5.3
Reply #7 - Oct 21st, 2009 at 3:40pm
Print Post  
Hi JC,

In this case it should depend on RoutingOptions.Anchoring. Are you using a value different than Ignore? If it is different, but the link still doesn't connect to anchor points, I suppose we might have forgotten checking that value in the new router we implemented for you.

Stoyan
  
Back to top
 
IP Logged
 
JC_Dude
YaBB Newbies
*
Offline



Posts: 5
Joined: Oct 15th, 2009
Re: Can't create links with new Flowchart 5.3
Reply #8 - Oct 21st, 2009 at 6:27pm
Print Post  
Hi Stoyan,

The RoutingOptions.Anchoring is set to Keep and RoutingOptions.IgnoreAnchoring is set to false.

I'll try setting the autoRoute to false to see what it does to the look & feel of the application while I wait for a confirmation if it's a bug or not.

Thanks,
JC
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't create links with new Flowchart 5.3
Reply #9 - Oct 22nd, 2009 at 12:14pm
Print Post  
Hi JC,

This version should set the link anchor properties as expected when using the WhileCreating option:
https://mindfusion.eu/_beta/fcnet533_anc.zip

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



Posts: 5
Joined: Oct 15th, 2009
Re: Can't create links with new Flowchart 5.3
Reply #10 - Oct 22nd, 2009 at 12:50pm
Print Post  
Hi Stoyan,

I can confirm that it does work using this version without any modification to our code.

Thanks,
JC
  
Back to top
 
IP Logged
 
JC_Dude
YaBB Newbies
*
Offline



Posts: 5
Joined: Oct 15th, 2009
Re: Can't create links with new Flowchart 5.3
Reply #11 - Oct 22nd, 2009 at 1:05pm
Print Post  
Hi Stoyan,

Would it be possible to get the source code and an installer for this new 5.3.3 beta version ?

Thanks,
JC
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Can't create links with new Flowchart 5.3
Reply #12 - Oct 22nd, 2009 at 3:17pm
Print Post  
Hi JC,

For the source code check the PM page. We'll build v5.3.3 installers next week.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint