Diagrams API
- Last UpdatedMar 27, 2024
- 1 minute read
AVEVA Diagrams has a public interface to help developers write custom addins, Aveva.Diagrams.Interface.dll. The dll contains a class with three interfaces, including the following methods and events.
|
SettingManager |
|
|
Methods |
|
|
GetSettingValue |
Get actual AVEVA Diagrams setting value. |
|
DrawingManager |
|
|
Events |
|
|
DrawingOpened |
Raised when a drawing is opened. |
|
DrawingClosed |
Raised when a drawing is closed. |
|
Methods |
|
|
GetActiveDrawing |
Get DrawingInfo on active drawing. |
|
GetOpenedDrawing |
Get list of all opened drawings. |
|
ShapeManager |
|
|
Events |
|
|
BeforeShapeAdd |
Raised just before Visio Shape add. |
|
BeforeShapeDelete |
Raised just before Visio Shape delete. |
|
ShapeAdded |
Raised when Visio Shape added. |
|
ShapeDeleted |
Raised when Visio Shape deleted. |
|
Methods |
|
|
FindShapesOnCurrentDrawing |
Find all shapes on current drawing that are representing database item. |
|
FindShapesOnCurrentPage |
Find all shapes on current page that are representing database item. |
|
FindShapesOnOpenedDrawings |
Find all shapes on all opened drawings that are representing database item. |
|
GetDbElementFromShape |
Find database elements represented by a shape. |
|
HighlightShape |
Highlight or reset highlight on Visio Shape. |
|
ResetHighlight |
Reset many shapes in one go on desired area. |
Note:
It is not recommended to call other Diagrams dll’s, as these are internal to Diagrams
and may be changed without notice.