How to replace a exsisting shapetext & Master shape with otermastershape

  • Thread starter shailendrasingh823
  • Start date
S

shailendrasingh823

Hi All,

I want to replace a exsisting shapetext & change the master shape with
other master shape.

How can I do it?

if Any body have any idea please let me know.

Shail
 
S

shailendrasingh823

Delete the existing shape and place a new shape just on the same place.

Hi June Thanks for the reply,Same I am doing,but when I delete the
shape & again drop it on same place (same xPos,& yPos).

It's not showing me the correct dimensions,Dimensions has been
changed.

Shail
 
S

shailendrasingh823

Delete the existing shape and place a new shape just on the same place.

Hi June,

Another problem is that if That shape is connected with some shape
then that information also be updated.

Shail
 
S

shailendrasingh823

Hi June,

Another problem is that if That shape is connected with some shape
then that information also be updated.

Shail

Hi June,

My aim is to update a drawing on runtime,on run time you can change
the ShapeText,ShapeType & if needed Connections also.

Please help me for this.

Shail
 
S

shailendrasingh823

Hi June,

My aim is to update a drawing on runtime,on run time you can change
the ShapeText,ShapeType & if needed Connections also.

Please help me for this.

Shail

Hi June,


I am trying to update the exsisting visio drawing on run time.If Any
how I can change the Exsisting Shape Text & ShapeMaster on drawing
page,without deleting Shape. If any idea about this then please let me
know.

Regards
Shail
 
S

shailendrasingh823

As far as I know visio has no exchange method.

Hi June,

Before I had write the code through which you can pass a structure &
draw the Diagram Accoeding to this structure information(Structure has
Shape Information & Connection Information).But I was drawing
onWinforms,after changing the structure information you have to redraw
the drawing.So close the current winform & redraw the Drawing.So user
always have to call the update Function which close the drawing &
again draw drawing with uodate information.

That method is not like run time update .Do you think it's possible
(run timr update) means no need to close the Winform,just changing the
information will change the drawing.

If yes then please let me know How.

Thanks & Regards
Shail
 
N

Nikolay Belyh

My aim is to update a drawing on runtime,on run time you can change
the ShapeText,ShapeType & if needed Connections also.

AFAIK this feature is often referred to as a "replace shape" feature
(try searching on these keywords)
Unfortunately, you are on you own here, there is not much help Visio
provides for that.
Though there are some 3-rd party tools that do implement this feature

If you want to incorporate this functionality into your application
and do-it-all-by-yourself,
I think here might be the way to go:

For the shape being replaced,
- save all connections, including info on target connection points.
- save z-order of the shape
- save all modified shape sheet cless.

- delete the shape
- drop brand new shape (based on new master)

- apply shape sheet cells to new shape (i.e. merge them somehow)
- apply z-order to the new shape
- apply (re-connect) all connections to the new shape..
 
S

shailendrasingh823

Hi Sailendra,
Are you using any programming language for doing this ?










- Show quoted text -

Hi Nikolay,

Thanks for ur reply.I am using Drawing control & then opening a visio
drawing using Src property.Here I dont know how can I Get the sheet
cells in Drawing Control & all process which have u mentioned before
little bit complecated .How will it be performed if u can give me any
clue.

Regards
Shail
 
N

Nikolay Belyh

On Dec 6, 4:34 am, CyberBhai <[email protected]>
wrote:
Thanks for ur reply.I am using Drawing control & then opening a visio
drawing using Src property.Here I dont know how can I Get the sheet
cells in Drawing Control & all process which have u mentioned before
little bit complecated .How will it be performed if u can give me any
clue.

Hi Shail,

Indeed, this seems to be a rather complicated process. AFAIK there is
no easy way to do that.
I think the code to accomplish this task properly might result in 1000
lines...
So I strongly suggest you to avoid this "replacement" process if you
can.
As an alternative, you can consider using cool Visio 2007 "data
graphics" feature.
Or emulate this behavior by showing/hiding shape parts, as it is
described here for example:
http://visguy.com/2006/09/05/the-hidden-world-of-visio-shapes/

Also, I think that the authors of the mentioned "3-rd party tools"
capable of doing the replacement stuff like that can explain these
things much better than me... They are on this forum as well. For
example Paul Herber http://www.visio-utilities.sandrila.co.uk/, "Shape
Substitute" or Brett Newman http://www.shapesource.com/, "Search and
Replace".

Kind regards, Nikolay
 

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