Moving linking lines. FromConnects?

J

jeff_porter

Hey all,

I have two objects in my Visio document, they are linked by a line.
shapes are 'shpOrignal' and 'calloutBox'

I'd like to move the end of the line to a new Shape via some VB code.

I can see the shpOriginal.FromConnects.FromSheet points to the calloutBox.

So I thought I could say...

shpNew.FromConnects.FromSheet = shpOriginal.FromConnects.FromSheet

Making the line now point to the shpNew, instead of shpOriginal.
But there is no change on the screen.

Anyone have any ideas?
Thanks

Jeff Porter
 
J

JuneTheSecond

Your idea is natural and interesting, but unfortunately you need to use
cell.glueto method.
 
J

jeff_porter

JuneTheSecond said:
Your idea is natural and interesting, but unfortunately you need to use
cell.glueto method.

Thanks June!

I've got my linking working now.
I'm having a little trouble removing a link that links two objects
thought. If you have any ideas on this I'd love to know! :)

situation:...
ObjectA links to ObjectB,
ObjectC added.
ObjectA linked to ObjectC.
ObjectB deleted
Linking line from ObjectA to ObjectB to be deleted (this is the bit I
can't do)*

*I'm just left with the line from ObjectB pointing to nothing, can can't
find how to remove it.

I presumed it would be something like..

ObjectB.FromConnects.Delete

But that doesn't work.

Any ideas?

Jeff
 
J

JuneTheSecond

Please note that all properties of connect object can get the status of
connection, but cannot change nor set the status.
If you move the connector to other shape with cell.glueto method, you can
get the new status about the connection of shapes.
 
J

jeff_porter

JuneTheSecond said:
Please note that all properties of connect object can get the status of
connection, but cannot change nor set the status.
If you move the connector to other shape with cell.glueto method, you can
get the new status about the connection of shapes.
Hi June,

I am adding a new connector line to the new object, rather than tying to
move the old line.

Any idea's on how can I delete the old line?

Thanks
Jeff

:)
 

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