Question about dropping a master inside a grouped shape

G

GigaMuxer

Visio masters,

Ok, maybe I am just not thinking outside the box here but:
(I have oversimplify to save typing.)

I have a master shape that consist of 5 boxes.
One big box and 4 smaller boxes inside of big box.
The names of the shapes will always be:
Box.1 - Big box
Box.2-4 - for each little box respectively.

On the same stencil there are 4 boxes that are called Red, White, Blue
and Green. This shapes are same size and shape as Box.2-4.

Now when the user dropes the Big box master on a page I want ask the
user with a vb form to specify which colored box to drop on top of the
little boxes.

Example: Bigbox droped. What stencil shape you want to drop on on Box.2
(little box). Answer: Red. The Red shape is dropped right on top of Box.2.

So what I am looking for is a function that I can pass the string name
specified by user and place it on top of the smaller shapes inside
(grouped) Box.

by the way its not collor fill that I want to do. again i did that only
to minimise lenth of email. in reality this is going to be chassis like
device with slots and color boxes are going to be cards to fit in the slots.

Regards,
LR
 
G

GigaMuxer

I can not figure out how to drop it on the slot (little box).
I know how to do it if if the little box was not a group member.
It uses the X and Y references of the Group shape not the group member.

Know how to do this?
 
M

Mark Nelson [MS]

Are you asking how to drop a shape inside another shape?

Set NewSubShape = GroupShape.Drop(MasterToDrop, LocalX, LocalY)

Presumably you would get LocalX and LocalY from the PinX and PinY of the
existing sub-shape you were dropping on top of.
 
G

GigaMuxer

Mark said:
Are you asking how to drop a shape inside another shape?

Set NewSubShape = GroupShape.Drop(MasterToDrop, LocalX, LocalY)

Presumably you would get LocalX and LocalY from the PinX and PinY of the
existing sub-shape you were dropping on top of.
Mark,

How do I do this when the shape I want to drop the master into is part
of a group?

L
 

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