Port in Line


Author
Message
Volvick Derose
Volvick Derose
Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)
Group: Forum Members
Posts: 71, Visits: 1
Assume that I have a vertical or a horizontal line, I try to add couple of ports to it, but when I rotate the line or change the direction of the line, I want the ports to remain steady. Currently, the ports keep moving, I couldn't find a way to prevent them from moving.

I try something like this

NLineShape myLine = new NLineShape(0, 0, 1000, 0);

//add the ports to the line
myLine .CreateShapeElements(ShapeElementsMask.Ports);

NDynamicPort midPoint = new NDynamicPort(entityLine.UniqueId, ContentAlignment.TopCenter, DynamicPortGlueMode.GlueToContour);
myLine .Ports.AddChild(midPoint);
myLine .Ports.DefaultInwardPortUniqueId = midPoint.UniqueId;

I try both the logical line, but still gives the same problem.

I try to put a series of points on a line like this picture, but when the line is rotated or moved, I want the ports to remain on the lines without moving or changing location
Attachments
pict2.png (120 views, 13.00 KB)
Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi,

you want the ports to be fixed at there initial location and remain there even if you move or rotate the line. Is that right ? If not, please, elaborate.



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search