Diagrams User Guide

Diagrams : Appendices : Customisation : Using the Visio Drawing Control
using System;
using Visio=Microsoft.Office.Interop.Visio;
using Aveva.Diagrams;
namespace UserAddin
  internal class AccessVisio
     internal AccessVisio()
  internal static bool IsDrawingActive()
     if(visApp == null)
  internal static void AddDescription(string ElemType, string Description)
     if(visApp == null)
   foreach(Visio.Shape shape in visApp.ActivePage.Shapes)
                     if(shape.get_CellsU("User.ElementType").get_ResultStr
       (Visio.VisUnitCodes.visNoCast) == ElemType)
               string.Format("\"{0}\"", Description);
       catch(Exception){};
if( WindowManager.Instance.MainForm.ActiveMdiChild != null )
   if(_activeCtrl != null && !(_activeCtrl is AxDrawingControl))
       foreach(System.Windows.Forms.Control ctrl in
          if(ctrl is AxDrawingControl)

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo