Profile Picture

Regarding Outward Port

Posted By Ravali Allam 14 Years Ago
Author
Message
Ravali Allam
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 5, Visits: 1

Hi,

We are evaluating Nevron Diagramming for Winform for our current project. We have found it very useful till now.

We have a requirement where we need to have outward ports. But we noticed that we are not able to connect the outward ports. Please let us know if this is an issue or if there is a specific way to do it.

We greatly appreciate your support. Thanks in advance.

Regards,

Ravali Allam



Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi,

Outward ports should be connected to inward ports. You cannot connect 2 ports of the same type (i.e. 2 inward or 2 outward ports).



Best Regards,
Nevron Support Team



Ravali Allam
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 5, Visits: 1

Hi,

We have tried to connect from outward to inward. But the connection does not happen. Could you please let us know what can be the problem?

Thanks in advance,

Ravali Allam



Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Ravali,

Can you please elaborate or send some code that replicates the issue. In general a common requirements for all connections is that both shapes must be added to the drawing document before you try to connect them.


Best Regards,
Nevron Support Team



Ravali Allam
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 5, Visits: 1

Hi,

Firstly thanks for your quick replies.

PFB the steps I have followed to make connection from outward port to an inward port. Please repeat the steps and let me know the result.

Opened Diagram Designer from Start --> All Programs --> Nevron .Net vision 2010.1 for VS2008, that comes on installing Nevron
Drag and dropped 2 rectangles onto the diagram canvas.
Changed a port of one of the rectangles to outward type.
Then selected the Line tool and tried connecting the 2 rectangles from the outward port to inward.
Connection did not happen, nor can I see the red highlight which happens when a connector is hovered near a port.

Please note that this does not involve any code customization. We are directly using the Diagram Designer that comes as sample.

Thanks in advance,

Ravali Allam.



Sheir Ali
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 2, Visits: 1
I too am having the same issue and am hoping to find a solution.

I have two custom shapes (created by NGroup) with one having In ports and other having Out ports.

Tried to use a line connector to connect the shapes but no luck at all.
Also both ends of the Line are able to connect to the In ports, which is not what I want.

What I want is the following
Out ---> In

How to get this done??


Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Outward ports should be connected to inward ports. You can connect the ports themselves and you don’t have to use line connector.
If you need to connect your shapes with a line connector, you can use Inward or InwardAndOutward ports.

Take a look at the Diagram Ports topic in the Help Documentation: http://helpdotnetvision.nevron.com/UsersGuide_DOM_Shapes_Ports.html



Best Regards,
Nevron Support Team



Sheir Ali
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 2, Visits: 1
One of the Nevron Support team gave me some code about using my Line connector to connect two shapes (one explicitly set as PortType.Inward, shape.Name="PPMDOut")
and other shape with default Type (shape.Name = "PPMDIn").

A Connecting event handler was created.
nDrawingDocument1.EventSinkService.Connecting += new ConnectionCancelEventHandler(EventSinkService_Connecting);

///
/// This event occurs when 2 shapes arre connecting on the drawing veiw. Here is the place where you
/// can cancel the connection if you want.
///

///
private void EventSinkService_Connecting(NConnectionCancelEventArgs args)
{
NPlug plug = (NPlug)args.Document.GetDescendantFromUniqueId(args.UniqueId1, -1);
NPort port = (NPort)args.Document.GetDescendantFromUniqueId(args.UniqueId2, -1);

if (plug is NStartPlug)
{
// This is a start plug
if (port.Shape.Name == "PPMDOut")
{
// Start plug connection not allowed for Digital Output shapes - show a wanring
// message and cancel the connection
MessageBox.Show("Connecting Start Plugs to a 'Digital Output' shape is not allowed!",
"Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
args.Cancel = true;
}
}
else
{
// This is an end plug
if (port.Shape.Name == "PPMDIn")
{
// End plug connections not allowed for Digital Input shapes - show a warning
// message and cancel the connection
MessageBox.Show("Connecting End Plugs to a 'Digital Input' shape is not allowed!",
"Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
args.Cancel = true;
}
}
}





Similar Topics


Reading This Topic