Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic RoutingOptions.GridSize (Read 6247 times)
CedricL
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Jul 2nd, 2008
RoutingOptions.GridSize
Jul 2nd, 2008 at 2:43pm
Print Post  
Hi,

We're currently moving our ASP.Net application from NetDiagram 1.1 to NetDiagram 2.0
A problem occurs with 1.1 option "RoutingOptions.GridSize". It seems it does not exist under 2.0.
How to replace it ?
(Same problem with "RoutingOptions.LengthCost")

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: RoutingOptions.GridSize
Reply #1 - Jul 2nd, 2008 at 3:33pm
Print Post  
Hi,

RoutingOptions is a member of the Digram class now. Try this:

Diagram d = diagramView.Diagram;
d.RoutingOptions.GridSize = 5;
d.RoutingOptions.LengthCost = 1;
d.RouteAllLinks();

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


I love YaBB 1G - SP1!

Posts: 12
Joined: Jul 2nd, 2008
Re: RoutingOptions.GridSize
Reply #2 - Jul 2nd, 2008 at 3:37pm
Print Post  
Well, that was what I tried to do, but I got the following error:

'MindFusion.Diagramming.RoutingOptions' does not contain a definition for 'GridSize' and no extension method 'GridSize' accepting a first argument of type 'MindFusion.Diagramming.RoutingOptions' could be found (are you missing a using directive or an assembly reference?)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: RoutingOptions.GridSize
Reply #3 - Jul 2nd, 2008 at 3:39pm
Print Post  
Could you copy your code here?
« Last Edit: Jul 2nd, 2008 at 6:00pm by Stoyo »  
Back to top
 
IP Logged
 
CedricL
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Jul 2nd, 2008
Re: RoutingOptions.GridSize
Reply #4 - Jul 3rd, 2008 at 6:34am
Print Post  
Here is the part we use in our Page.aspx.cs:

Code
Select All
FlowChart.Diagram.RoutingOptions.GridSize = 70.0f; 



FlowChart is the DiagramView component ID in our Page.aspx
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: RoutingOptions.GridSize
Reply #5 - Jul 3rd, 2008 at 7:10am
Print Post  
Right, I've tried this with the released version now, and apparently the obfuscating tool we are using has decided to obfuscate some RoutingOptions property names even if they are public ??? (You can see them listed in the Intellisense popup starting with "x"). We will investigate why that happens and send you a fixed version later today.

Stoyan
  
Back to top
 
IP Logged
 
CedricL
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Jul 2nd, 2008
Re: RoutingOptions.GridSize
Reply #6 - Jul 3rd, 2008 at 7:12am
Print Post  
Yes, I noticed these "x" methods. I'm waiting for your fix.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: RoutingOptions.GridSize
Reply #7 - Jul 3rd, 2008 at 11:04am
Print Post  
Open the Private Messages page from the link at the top of the page, you will find the download link there.
  
Back to top
 
IP Logged
 
CedricL
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 12
Joined: Jul 2nd, 2008
Re: RoutingOptions.GridSize
Reply #8 - Jul 3rd, 2008 at 12:42pm
Print Post  
Thanks. Now our project compiles without any error.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint