We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to obtain info about what nodes a link connect.

Thread ID:

Created:

Updated:

Platform:

Replies:

77776 Nov 17,2008 08:05 AM Nov 18,2008 02:19 AM Windows Forms 4
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On November 17, 2008 08:05 AM

Hi, I downloaded evaluation to determine whether this is suitable for my purposes, in order to purchase.

What I want to do is:
When user drags and drops a link, and connects 2 nodes with it, it displays a pop-up message saying which nodes have been connected and in what direction.

1) Can I implement that?
2) How do I do it?

Thanks,
Ameel


Administrator [Syncfusion]
Replied On November 17, 2008 08:28 AM

Btw. I'm using Visual Studio 2008 Professional and latest Syncfusion release.

I tried the following:
http://websamples.syncfusion.com/samples/Diagram.Windows/ConnectedSymbols/main.htm

It doesn't work
Error:
Error 1 The type or namespace name 'CirclePort' does not exist in the namespace 'Syncfusion.Windows.Forms.Diagram' (are you missing an assembly reference?) C:\Users\Ameel\Desktop\_ConnectedSymbols\CustomSymbol\MySymbol.cs 35 43 CustomSymbol
Error 2 The type or namespace name 'CirclePort' does not exist in the namespace 'Syncfusion.Windows.Forms.Diagram' (are you missing an assembly reference?) C:\Users\Ameel\Desktop\_ConnectedSymbols\CustomSymbol\MySymbol.cs 36 43 CustomSymbol
Error 3 The type or namespace name 'ConnectionCollectionEventArgs' does not exist in the namespace 'Syncfusion.Windows.Forms.Diagram' (are you missing an assembly reference?) C:\Users\Ameel\Desktop\_ConnectedSymbols\CustomSymbol\Form1.cs 377 93 CustomSymbol


I also tried:
http://websamples.syncfusion.com/samples/Diagram.Windows/F57324/main.htm
But I get error:
Error 1 The type or namespace name 'CirclePort' does not exist in the namespace 'Syncfusion.Windows.Forms.Diagram' (are you missing an assembly reference?) C:\Users\Ameel\Desktop\_CustomSymbol\CustomSymbol\MySymbol.cs 35 43 CustomSymbol
Error 2 The type or namespace name 'CirclePort' does not exist in the namespace 'Syncfusion.Windows.Forms.Diagram' (are you missing an assembly reference?) C:\Users\Ameel\Desktop\_CustomSymbol\CustomSymbol\MySymbol.cs 36 43 CustomSymbol


So, what can i do?


Administrator [Syncfusion]
Replied On November 18, 2008 12:50 AM

Hi Ameel,

The samples that you tried, didn't work as they were coded for the v4.4.0.51.

The v6.4.0.15 is the latest release version and I assume you are using this version of Syncfusion Essential Studio Products.

Now, regarding the information about what nodes connect when a link is made using line connector and in which direction, can be got as follows:

To get the nodes:
Head Node:
------
Node h_node = t_connector.ToNode as Node;
------

Tail Node:
------
Node t_node = t_connector.FromNode as Node;
------

To get the direction at which the connector connects to the Node, is got as follows:
Head Node:
---------
t_connector.HeadingHead.ToString()
---------

Tail Node:
---------
t_connector.HeadingTail.ToString()
---------

For your convenience I am attaching my sample file that will guide and demonstrate you how the detection of Nodes takes place.

Update me with you experiences and post your comments here for any other details required in this regard, Thanks!

- Ajeet [SYNCFUSION]



F77776_c167d7bf.zip

Administrator [Syncfusion]
Replied On November 18, 2008 01:55 AM

I really appreciate the support. It's very fast and responsive.+10
I'll check out the sample attached later.

Thank you again,
Ameel

>Hi Ameel,

The samples that you tried, didn't work as they were coded for the v4.4.0.51.

The v6.4.0.15 is the latest release version and I assume you are using this version of Syncfusion Essential Studio Products.

Now, regarding the information about what nodes connect when a link is made using line connector and in which direction, can be got as follows:

To get the nodes:
Head Node:
------
Node h_node = t_connector.ToNode as Node;
------

Tail Node:
------
Node t_node = t_connector.FromNode as Node;
------

To get the direction at which the connector connects to the Node, is got as follows:
Head Node:
---------
t_connector.HeadingHead.ToString()
---------

Tail Node:
---------
t_connector.HeadingTail.ToString()
---------

For your convenience I am attaching my sample file that will guide and demonstrate you how the detection of Nodes takes place.

Update me with you experiences and post your comments here for any other details required in this regard, Thanks!

- Ajeet [SYNCFUSION]



F77776_c167d7bf.zip


Administrator [Syncfusion]
Replied On November 18, 2008 02:19 AM

Great. Exactly what I needed afterall.

Thanks for that.
Great support

>Hi Ameel,

The samples that you tried, didn't work as they were coded for the v4.4.0.51.

The v6.4.0.15 is the latest release version and I assume you are using this version of Syncfusion Essential Studio Products.

Now, regarding the information about what nodes connect when a link is made using line connector and in which direction, can be got as follows:

To get the nodes:
Head Node:
------
Node h_node = t_connector.ToNode as Node;
------

Tail Node:
------
Node t_node = t_connector.FromNode as Node;
------

To get the direction at which the connector connects to the Node, is got as follows:
Head Node:
---------
t_connector.HeadingHead.ToString()
---------

Tail Node:
---------
t_connector.HeadingTail.ToString()
---------

For your convenience I am attaching my sample file that will guide and demonstrate you how the detection of Nodes takes place.

Update me with you experiences and post your comments here for any other details required in this regard, Thanks!

- Ajeet [SYNCFUSION]



F77776_c167d7bf.zip


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;