Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MatthiasVDE on May 10, 2017, 10:58:11 pm
-
The following code creates a class diagram under the BIGroup element, this part works. But when I try to set the orientation of that class diagriam to landscape, it seems not working. When I debug it by showing a message box with the orientation, he gives me an 'L'.
function EA_OnPostNewElement(Info)
dim elementID
elementID = Info.Get("ElementID")
dim BIGroup
set BIGroup = Repository.GetElementByID(elementID)
dim classDiagram 'as EA.Diagram
set classDiagram = BIGroup.Diagrams.AddNew("LDM-BI Entities Overview", "Class")
classDiagram.Orientation = "L"
classDiagram.Update()
BIGroup.Diagrams.Refresh()
end function
-
I guess this is a buried bug. You can change the letter and it's saved, but it does not change the property (it's alway Portrait).
q.
-
Hi,
yesterday I tried it with C# and EA 13 to change the diagram page orientation from P to L and vice versa.
It worked.
Kind regards,
Helmut
-
Hi,
yesterday I tried it with C# and EA 13 to change the diagram page orientation from P to L and vice versa.
It worked.
Kind regards,
Helmut
I'm working with 12.1, maybe that's the reason?
-
I also tried with V12. So a fixed bug? Where's the champagne?
q.