Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Major Anchor Issues Since Going to 5.0.3 (Read 3635 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Major Anchor Issues Since Going to 5.0.3
Jan 5th, 2014 at 7:53pm
Print Post  
Hi,

Well I thought I'd play catchup and migrate from 4.2 to 5.0.3.
My diagrams were looking almost perfect (thanks in part to your great help), but now it looks like the anchorpoints are not working correctly, if at all.

Look at the 2 attached screenshots - the before and after results.

Here's a couple of things wrong with the "after" or 5.0.3 image:
- The only anchorpoint on shapes 1.5 and 3.5 is on the bottom tip, yet the link is coming out of the right side
- The link from 2.2 to 2.3 should be going into the left side of 2.3, not the bottom
- The link from 2.2 to 5.1 should be going into the top side of 5.1, not the right

Is there some new "anchor" setting that I need to specify?

Additionally, the following statement causes a null reference exception at runtime:

link.Pen.DashStyle = DashStyle.Dash;

Help!

Jim
  

Diagram_Issues_-_Before_503.png (Attachment deleted)
Diagram_Issues_-_After_503.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Major Anchor Issues Since Going to 5.0.3
Reply #1 - Jan 6th, 2014 at 8:17am
Print Post  
Quote:
Is there some new "anchor" setting that I need to specify?


I think we implemented the SwimlaneLayout.Anchoring property in a recent release and its default value is Ignore. Try setting that to Keep or Reassign.

Quote:
Additionally, the following statement causes a null reference exception at runtime:
link.Pen.DashStyle = DashStyle.Dash;


With the new styling system, Pen and Brush properties are now null by default, and in such case items derive pen and brush values from their Style or from the diagram's theme. If you need to set dash for individual links, you could either set it through link.Style, or by assigning a new Pen instance to link.Pen.

You could also peruse the release history here to find out what other changes are there since 4.2:
http://www.mindfusion.eu/onlinehelp/netdiagram/index.htm?CC_What_s_new_in_this_r...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: Major Anchor Issues Since Going to 5.0.3
Reply #2 - Jan 6th, 2014 at 1:59pm
Print Post  
Hi,

I already have the following specified in my class:

- diagram.RoutingOptions.Anchoring = Anchoring.Keep;
- swimLayout.Anchoring = Anchoring.Keep;

If you recall, I believe you implemented the latter to address one of my earlier issues and provided me an interim update to my 4.2 release.

I tried Reassign, but this does not work since I have explicitly set anchorpoints that I want kept before I reach the            swimLayout.Arrange.

Any thoughts on what to try next?

Thanks

Jim

PS: I'll try the pen approach you mentioned for my other problem.


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Major Anchor Issues Since Going to 5.0.3
Reply #3 - Jan 6th, 2014 at 5:59pm
Print Post  
Quote:
If you recall, I believe you implemented the latter to address one of my earlier issues and provided me an interim update to my 4.2 release


Well, our developer cannot recall if he has ever copied that fix from the v4.2 fork he created for you to our latest 5.* code. He marked this as fixed, but now we can't find that fix in the main code, so that Anchoring.Keep item in 5.0.3 release list seems to be a lie Embarrassed We'll try to send you updated build tomorrow with the Keep handling included again. If you now use only single in/out points per node after the angle sorting code from last thread, Anchoring.Reassign should work fine though.

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


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: Major Anchor Issues Since Going to 5.0.3
Reply #4 - Jan 6th, 2014 at 6:01pm
Print Post  
Hi,
Thanks.  I'll look forward to the code.
Jim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Major Anchor Issues Since Going to 5.0.3
Reply #5 - Jan 7th, 2014 at 11:21am
Print Post  
You can find updated 5.0.3 build on the PM page.

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