DoDragDrop on modified master shapes has strange side-effect

VISIO

    Sponsored Links

    Next

  • 1. Visio Internal Error #3413
    When trying to save a Visio file, I get the following error: visio internal error #3413 Action 1016: Exit Application First try closing and reopening the file. Next try restarting Visio.
  • 2. Is there a Windows Vista User Interface Template for Visio 2003?
    I am an interface designer for a Human Factors company and we are developing an application for a client that will launch on Windows Vista. I am looking for an updated Windows UI Template for Visio 2003 so that we can ensure that the application will fit any UI changes or additions that Vista may offer. Thanks!
  • 3. Editing Entity shape property
    Hi, I've got a visio document that represents the data model of our oracle database. I would like to access the shapes that represent the database tables and retrieve their properties (database table related like Columns, triggers Indexes etc) and edit them. For instance I would like to add more indexes for a given table (represented by the 'Entity' shape). Since I have to do it in large numbers, I would like to do this programmatically using the automation. I imported the visiolib tlb file, created the interop assembly and gone up to accessing the Page's shapes programmatically in C#. But I'm stuck there since the shape's type is just System.__ComObject and could not proceed further. Can anybody help me out please? Thanks
  • 4. Troulbe printing to PDF via VBS script
    Hi, I have a created a simple VBS script that I call from a SQR program in PeopleSoft. The script executes the Visio OrgChart Wizard and after it is done building the orgchart, it saves the chart to a unique file name (userid concatinated with datetime). Another PeopleSoft process then picks up the file and emails it to the user. This all works fine. Now I have been asked to automate the the saving of the orgchart to PDF. I recorded a macro from within Visio that gave me the following code: Application.ActiveDocument.PrintOut PrintRange:=visPrintAll, _ PrinterName:="Adobe PDF" I have tried to incorporate this code into my script without success. Here is what I have: bunch of wizard stuff OutPutFile=FileName oVisio.ActiveDocument.SaveAs(OutputFile) oVisio.ActiveDocument.PrintOut 'PrintRange:=visPrintAll,PrinterName PrinterName:="Adobe PDF"' oVisio.ActiveDocument.close oVisio.quit Set oVisio = nothing The error I get is: Wrong number of arguements or invalid property assignment Visio 2003, Windows 2000 Pro Very knew to visio and VB so any help would be greatly appreciated. TIA, Jeff
  • 5. can you attach two words to a connector in visio?
    I am building a network diagram and want to display the port numbers for the two devices being connected on each end of my connector line. I am entering the port numbers in two seperate fields in the connector's "custom properties" table and just want those two fields displayed at both ends of the connectors (insert -> field only allows one field to be added).

DoDragDrop on modified master shapes has strange side-effect

Postby w4VrZQ » Tue, 20 Jun 2006 23:07:03 GMT

The scenario is the following:

I have a tree which I drag shapes from. When dragging the item, i find its 
corresponding master in the document stencil (via doc.Masters.get_ItemU) and 
DoDragDrop(foundMaster, DragDropEffects.Copy) on the master shape I get.

After doing this a couple of times (and it works as it should) i edit (in 
visio) the master shape in the document stencil. After updating all 
references i try dragging another one in from my tree. The dragged object 
looks fine, but when releasing/dropping the shape on the drawing surface, the 
text is renamed to what it was before, and another master is created in the 
document stencil.

Why is this happening? My code find the correct master since the text is 
correct when dragging the item without releasing it... But Visio does 
something when i release it. I know that the UniqueID changes when editing 
the text, but should this really be a problem?

If i edit the master in the document stencil before doing any drag-and-drop 
operation, then drag-and-drop works (no change of text and no new master 
shape), but immediately after editing the master, it starts acting weird!

Dragging the master from the document stencil works fine in every case.


Another thing:
I have also noticed that the icon when my drag-and-drop operation is going 
on, is more like in windows explorer, but when using the document stencil 
it's only a small 'plus' sign. What is the difference?.. How can I access 
Visios internal drag-and-drop functionality?



RE: DoDragDrop on modified master shapes has strange side-effect

Postby SnVuZVRoZVNlY29uZA » Wed, 21 Jun 2006 09:11:02 GMT

Though I do not know the detailed mechnism, Visio knows that you changed
the instance that you have droped from the stencil to your document page.
Visio knows changed master is not equal to the another master that you
have dropped next.

-- 
JuneTheSecond  







Re: DoDragDrop on modified master shapes has strange side-effect

Postby Mark Nelson [MS] » Wed, 21 Jun 2006 13:56:57 GMT

Here's an overview of this from a Visio perspective:
 http://www.**--****.com/ 


-- 
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.









Re: DoDragDrop on modified master shapes has strange side-effect

Postby w4VrZQ » Wed, 21 Jun 2006 19:44:01 GMT

I suspected that it had to do with the UniqueID changing... It still seems 
that there is some caching done which makes Visio reload old information from 
the saved stencil instead of taking the edited master.

However: Enabling MatchByName for the master in the document stencil solved 
the problem. It now loads the correct master.

Do you know if it matches by 'Name' or 'NameU' (universal name) ?

Thanks for the link to the overview!






Similar Threads:

1.Modified Shape Masters have funny effect on Text Placement

I've modified a couple of master shapes by adding some lines and connection 
points.  if i just add connection points, i don't run into this problem.  But 
if I modify the drawing presentation by adding lines or curves, the text no 
longer goes into the normal text location.  Instead it opens a new textbox 
right in the middle of the object with a different format.

I can get to the normal text location by clicking repeatedly until it's 
chosen as a sub-object, but I assume there's a way for me to tell Visio that 
the "old" default text location/object should *still* be the default text 
location object.

Can someone tell me how I can accomplish this?  I don't seem to have the 
right vocabulary to find it using search terms.

Thanks in advance.

2.Modify a shape master and update all the shapes on the visio p

3.Modify a shape master and update all the shapes on the visio pages

Hi,
my problem is the following:
1) I create a new shape master
2) I use it many times in a one or more visio pages
3) then when I make a modification on the shape master I would automatically 
update all the shapes on the visio pages I used before; is that possibile? 
how?
Please, help me!

4.Effect of having "no active layer" when adding objects

Using 2003

What is the effect of not assigning shapes, when created, to a layer?
Or what is the problem of not flagging a layer as active when adding
shapes?

Up until now I have not used layers.  Reviewing my previous work, I see
that the connectors seem to be on a layer (not active) and the same
with flowchart items.

I now realize that I can assign the various shapes to a layer.  That
said, are all non-assigned connectors and shapes - essentially on both
the "connectors" and the "flowchart" layers?

I hope that I my questions are clear.

Dennis

5.No Side Effect snge msvebtfkz

6. Visio 2003 - Org Chart from Excel Ignores Modified Masters in Document Stencil

7. Modifying masters in a stencil

8. Modify selection of masters in stencil?



Return to VISIO

 

Who is online

Users browsing this forum: No registered users and 10 guest