Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear all,
I'm using C#.net 2008 and Visio 2007.
in my forms application I use an axDrawingControl to render UML static structures. I use the stencil UMLSTR_M.vss and dropped a shape

MIDL
newShape = currentPage.Drop(currentStencil.Masters["Class"], 3.00, 10.00);


I can change the name of the class
MIDL
foreach (Visio.Shape tempInnerShape in newShape.Shapes)
{
    if (tempInnerShape.Name == "Name")
    {
          tempInnerShape.Text = "Student";
    }
    if (tempInnerShape.Name == "Attributes")
    {
      //tempInnerShape.Text = "temp Operations" //ERROR
    }
}



But I cant set text for attributes. Can read all attributes and Operations from an already drawn class but can not set.
Please help me to do the task.
Thank you
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900