Profile Picture

Composite Shape Plug in Line

Posted By Volvick Derose 14 Years Ago
Author
Message
Volvick Derose
Posted 14 Years Ago
View Quick Profile
Forum Guru

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
Last Active: 12 Years Ago
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 (104 views, 20.00 KB)
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: 2 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009

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
Posted 14 Years Ago
View Quick Profile
Forum Guru

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
Last Active: 12 Years Ago
Posts: 71, Visits: 1

Solved

thanks





Similar Topics


Reading This Topic