M
Mozzy
Hi there,
I am developing a Visio 2003 add-in using the Visio 2003 SDK.
After developing a custom shape that has a QUEUEMARKEREVENT on it (The shape
consist of a group of 4 chair shapes and one table shape and with each chair
on a different layer and the whole group contains user defined cells and
actions) I have made a POC and came to following.
The POC should show how to add/remove chairs to the table in the shape.
Until now I was only successful in adding chairs by duplicating existing
chairs in the destination layer (each layer represents one side of the table)
and deleting chairs by calling Shape.Delete.
My problem now is that if I delete all shapes on one side I am unable to add
again a shape. When trying to get the Chair shape from my stencil (
MyNewChair = Application.Documents("MyStencil.vss").Item("Chair").Shapes(1)
and then calling MyMainShape.Layer(2).Add(MyNewChair, 1) ) it fails with the
error message "Inappropriate target object for this action."
I have been searching the whole day in groups for an answer to that but now
I am out of ideas and need direct help.
I am developing a Visio 2003 add-in using the Visio 2003 SDK.
After developing a custom shape that has a QUEUEMARKEREVENT on it (The shape
consist of a group of 4 chair shapes and one table shape and with each chair
on a different layer and the whole group contains user defined cells and
actions) I have made a POC and came to following.
The POC should show how to add/remove chairs to the table in the shape.
Until now I was only successful in adding chairs by duplicating existing
chairs in the destination layer (each layer represents one side of the table)
and deleting chairs by calling Shape.Delete.
My problem now is that if I delete all shapes on one side I am unable to add
again a shape. When trying to get the Chair shape from my stencil (
MyNewChair = Application.Documents("MyStencil.vss").Item("Chair").Shapes(1)
and then calling MyMainShape.Layer(2).Add(MyNewChair, 1) ) it fails with the
error message "Inappropriate target object for this action."
I have been searching the whole day in groups for an answer to that but now
I am out of ideas and need direct help.