"Inappropriate target object for this action" error while using GlueTo() method

V

visDev

I have programmatically placed a data process shapes Shape1 and a cur1ve
connect 2 shape Connect1 on an AxDrawingControl drawingControl1. I wish to
glue the shapes using GlueTo() method, but I get "Inappropriate target
object for this action" error. Here is the code:

Microsoft.Office.Interop.Visio.Cell wireX =
Connect1.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.
VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.
VisRowIndices.visRowXForm1D,
(short)Microsoft.Office.Interop.Visio.
VisCellIndices.vis1DBeginX);

Microsoft.Office.Interop.Visio.Cell nodePinX =
Shape1.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.
VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.
VisRowIndices.visRowXFormOut,
(short)Microsoft.Office.Interop.Visio.
VisCellIndices.visXFormPinX);

wireX.GlueTo(nodePinX);

Will someone help me resolve this problem. I'll really appreciate your help.
Thank you in advance.

--VisDev

url:http://www.ureader.com/gp/1130-1.aspx
 

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