2-D Shapes connection points

H

ha1o

Hi, I need to connect two 2-DShapes by code on a Visio DrawingControl object.

The shapes I need to connect are "Cabinet" and "558329-1".

The shape "558329-1" has a category named "1-D endPoints". I tried to use
the same code I used to connect a "Dynamic Connector" shape; but it didn't
work.

Cell beginX = shape558329-1.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.
VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.
VisRowIndices.visRowXForm1D,
(short)Microsoft.Office.Interop.Visio.
VisCellIndices.vis1DBeginX);

beginX.GlueTo(shapeCabinet.get_CellsSRC(
(short)Microsoft.Office.Interop.Visio.
VisSectionIndices.visSectionObject,
(short)Microsoft.Office.Interop.Visio.
VisRowIndices.visRowXFormOut,
(short)Microsoft.Office.Interop.Visio.
VisCellIndices.visXFormPinX));


Then I tried to learnd about Inward/outward connection points, but I still
cannot connect those shapes by code.

Hope you can help me with this problem. Thks
 

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