copy paste methods

R

rob.vanpamel

Hello

if i copy a shape and paste it, there must happen more than just paste
it. this works fine but when i use the shortcut keys ctrl +c , ctrl +v,
it does not call my function. How can i make visio call my function
I already tried the key events but they don't seem to know ctrl + C of
ctrl+ V
Thanks in advance

Rob
 
C

Chris Roth [ Visio MVP ]

Watch Document or Page.ShapeAdded events. These fire when a shape is
dropped, copied, or pasted.

--

Hope this helps,

Chris Roth
Visio MVP
 
R

rob.vanpamel

Hi

First of all i would like to apoligize for the late answer.
I have tried your solution but it doesn't help. The problem is that i
need information from the shape that is being copied from. If i can
have the uniqueID from that shape i can do what i want. But the shape
that is paste already has another uniqueId what is normal offcourse.
(For each shape i write some information in the solutionXML and the
name from the solutionXML tag is the uniqueId)
Any other suggestion?

Rob Van Pamel




Chris Roth [ Visio MVP ] schreef:
 
D

David Parker [Visio MVP]

You have the option to create a unique ID (GUID) for a shape, but of course,
this would have to be done before you copy.
The new shape will not have a GUID until you create one.

Hi

First of all i would like to apoligize for the late answer.
I have tried your solution but it doesn't help. The problem is that i
need information from the shape that is being copied from. If i can
have the uniqueID from that shape i can do what i want. But the shape
that is paste already has another uniqueId what is normal offcourse.
(For each shape i write some information in the solutionXML and the
name from the solutionXML tag is the uniqueId)
Any other suggestion?

Rob Van Pamel




Chris Roth [ Visio MVP ] schreef:
Watch Document or Page.ShapeAdded events. These fire when a shape is
dropped, copied, or pasted.

--

Hope this helps,

Chris Roth
Visio MVP
 
R

rob.vanpamel

Is there then a possibility that when i call the copy function to set
the unique id into a variable so i refer to this variabele to get the
information that is into my SolutionXML file?
Or a possibility that i can react at a copy event or something else?

Rob Van Pamel

David Parker [Visio MVP] schreef:
You have the option to create a unique ID (GUID) for a shape, but of course,
this would have to be done before you copy.
The new shape will not have a GUID until you create one.

Hi

First of all i would like to apoligize for the late answer.
I have tried your solution but it doesn't help. The problem is that i
need information from the shape that is being copied from. If i can
have the uniqueID from that shape i can do what i want. But the shape
that is paste already has another uniqueId what is normal offcourse.
(For each shape i write some information in the solutionXML and the
name from the solutionXML tag is the uniqueId)
Any other suggestion?

Rob Van Pamel




Chris Roth [ Visio MVP ] schreef:
Watch Document or Page.ShapeAdded events. These fire when a shape is
dropped, copied, or pasted.

--

Hope this helps,

Chris Roth
Visio MVP


Hello

if i copy a shape and paste it, there must happen more than just paste
it. this works fine but when i use the shortcut keys ctrl +c ,
ctrl
+v,
it does not call my function. How can i make visio call my function
I already tried the key events but they don't seem to know ctrl
+ C
of
ctrl+ V
Thanks in advance

Rob
 
D

David Parker [Visio MVP]

Certainly you can! Have you downloaded the Visio SDK? It contains an Event
Viewer - very useful for spotting which events you need. From memory, I
think you will need to watch for the EnterScope event with the number for
Copy.

Is there then a possibility that when i call the copy function to set
the unique id into a variable so i refer to this variabele to get the
information that is into my SolutionXML file?
Or a possibility that i can react at a copy event or something else?

Rob Van Pamel

David Parker [Visio MVP] schreef:
You have the option to create a unique ID (GUID) for a shape, but of course,
this would have to be done before you copy.
The new shape will not have a GUID until you create one.

Hi

First of all i would like to apoligize for the late answer.
I have tried your solution but it doesn't help. The problem is that i
need information from the shape that is being copied from. If i can
have the uniqueID from that shape i can do what i want. But the shape
that is paste already has another uniqueId what is normal offcourse.
(For each shape i write some information in the solutionXML and the
name from the solutionXML tag is the uniqueId)
Any other suggestion?

Rob Van Pamel




Chris Roth [ Visio MVP ] schreef:
Watch Document or Page.ShapeAdded events. These fire when a shape is
dropped, copied, or pasted.

--

Hope this helps,

Chris Roth
Visio MVP


Hello

if i copy a shape and paste it, there must happen more than just
paste
it. this works fine but when i use the shortcut keys ctrl +c , ctrl
+v,
it does not call my function. How can i make visio call my function
I already tried the key events but they don't seem to know ctrl + C
of
ctrl+ V
Thanks in advance

Rob
 

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