Connection points again...with a twist :-)

M

Mac

Imagine a Mercedes logo - that's three semicircular shapes plus one circular,
border shape. So that's four shapes which I group together. Now, to this
group shape I add three connection points so that each resides in the center
of one of the semicircular shape's outer edges, so visually you can now
connect to each third of the logo. In my code I want to iterate through the
semicircular shapes and connect each to a shape somewhere outside. My
question is - how can I 'bubble up' to th econnection points which are
obtainable in the group supershape, but unobtainable in those semicircular
subshapes? Is there a way to 'propagate' the conn. points to the group's
underlying subshapes? If my explanation seems too fuzzy I'd like to share a
sample vsd via mail.
 
J

JuneTheSecond

MAC

You might imagine the super shape shall be cirl\cle.
May be not.
How did you make group?
You might select the circle and 3 semi cirlles to group.
Super shape may be a completely new shape that has
no geometry section.
The circle is just a member of the group.
 
M

Mac

I definitely agree with that; however, by stating this I do not seem to have
solved my problem ...:-/
 
P

Paul Herber

Imagine a Mercedes logo - that's three semicircular shapes plus one circular,
border shape. So that's four shapes which I group together. Now, to this
group shape I add three connection points so that each resides in the center
of one of the semicircular shape's outer edges, so visually you can now
connect to each third of the logo. In my code I want to iterate through the
semicircular shapes and connect each to a shape somewhere outside. My
question is - how can I 'bubble up' to th econnection points which are
obtainable in the group supershape, but unobtainable in those semicircular
subshapes? Is there a way to 'propagate' the conn. points to the group's
underlying subshapes? If my explanation seems too fuzzy I'd like to share a
sample vsd via mail.

Have you thought about adding the connection points to the 3
semicircular shapes rather than to the group shape?
 
M

Mac

Yep, I've been thinking about it; the only problem is that I have a code for
this (adding the connection points), and I have to take into account the
position of the subshapes within the group, so I need to know if they're
visually facing left, right or down; now, my code can determine this from
within the group and thus it can put down its connection points, it does not
know how to determine the positioning from within the subshapes ...
 
J

JuneTheSecond

Hi MAC,

Maybe,
You have only to use shapesheet.
You can write VBA code to write the formula.

In the PinX and PinY of semi circle,
PinX=Sheet.6!Connections.X1
PinY=Sheet.6!Connections.Y1

Sheet.6 is the name of the super shape.
6 is ID of the super shape.
You may need to change the value of
LocPinX and LocPinY, for example,
LocPinX=Width*0
LocPinY=Height*0.3333
 
J

JuneTheSecond

You may need to change the value of ,,,,,,,,
semi circle according to the geometric shape.
 
M

Mac

Hi June2nd,

If I got it right, then what you suggest is that I copy the supershape's
Connections.X1, etc. cells into its respective subshapes. Is that correct?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top