Reputation: 139
When the diagramobjects are created using addin using API parentDiagram.DiagramObjects.AddNew("l=30;r=700;t=-50;b=-450;", "") we have first parameter in AddNew method where we will be able to set the position left,right,top and bottom.for these alignment we assign integer values .So we have around 20 elements created in diagram so we have one formula where it will be generating the integer values based on previous diagramobject top,left,bottom,right values.So is there any boundary for these integer values. For Ex:left can have only integer values from 0-2000.
Upvotes: 1
Views: 60
Reputation: 4445
Here you can set all the EA given layout's in your diagram through LayoutDiagram property of GetProjectInterface.
Using below code it can be achieved :
Repository.GetProjectInterface().LayoutDiagram(DiagramUGID,layoutStyle);
Upvotes: 1