Composite Shape Plug 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 composite shape with a line as shown by the picture. When using the composite shape, I want both ends of the line to be connected to a rectangle for instance when users move the composite shape closed to the port of a rectangle, the line can be connected to that port. The problem I have with the composite shape, once the shape is composed, the line cannot be identified from that shape.

Is there a way to solve this problem without adding port to the line then draw a line to connect it to the rectangle.

I try to solve this problem by using a group, however when the line is rotated, the circle does not, so that make the group solution unsuitable

See the attached picture, what is the best way to solve this problem either using group or composite shape?
Attachments
pic3.png (119 views, 20.00 KB)
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,

the easiest way is to group the line and the circle together and set the shape type of the group to Shape1D:

group.ShapeType = ShapeType.Shape1D;



Best Regards,
Nevron Support Team


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

Solved

thanks


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