Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: vermeirl on June 08, 2005, 03:16:53 am
-
According to the documentation, the attribute TreePos sets or gets the position of the element in the ProjectView tree. But when I try it, it has no effect whatsoever; although column tpos in table t_object has changed; but the GUI displays the classes in a seemingly random order. When I alter the order in the GUI (clicking on the little hands) though, I can see that column tpos gets adjusted! So it seems that the GUI doesn't use column tpos to determine the order of display, but does update that column when you alter the order. (version 5.0)
Any comments?
Luc Vermeiren
Belgium
-
This is just a guess, but if t_object.tpos is changing and you're not seeing the change then it's because the Project View isn't being refreshed. Try executing Project.ReloadProject() and see if that works.
-
I believe there's a fundamental problem here.
We have the corporate edition and we use a SQL Server database.
When I open the model, change the order of elements in a package (using the GUI), close the model and open it again, my changes are lost.
When I do the same thing in a local EAP file, the changes are permanent.
Also, when I open our SQL Server model in my version 5.0, I get a different ordering of the packages in the tree than when I look at the model with version 4.51.
Luc
-
There is a thread in the General Board section which describes this problem ("order is not maintained")