Book a Demo

Author Topic: GetTreePos always returns 0  (Read 4895 times)

Mirko Sertic

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
GetTreePos always returns 0
« on: June 25, 2010, 10:07:41 pm »
Hi

I am running EA 7.1. When using a repository as model source, GetTreePos works perfectly. When using an EAP file, GetTreePos always return 0. Is this a known issue, and is there a work around available?

Thanks in advance
Mirko

beginner

  • Guest
Re: GetTreePos always returns 0
« Reply #1 on: June 26, 2010, 01:15:22 am »
It's only set once you move an item. The order you see in the browser is a mixture of "setting: sort" and once used move operations ordering some of the object types (like you will not be able to move packages below elements and certain elements within others). Weird it is.

b.

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: GetTreePos always returns 0
« Reply #2 on: June 26, 2010, 05:16:09 am »
B,

Ah, that's the secret!

Seems to me it would make far more sense to have TreePos reflect an item's position in the tree at all times under all circumstances...
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: GetTreePos always returns 0
« Reply #3 on: June 26, 2010, 05:25:24 am »
Yeah, but that would a bit too much sense for EA wouldn't it ;D

Geert

Mirko Sertic

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: GetTreePos always returns 0
« Reply #4 on: June 29, 2010, 05:30:58 pm »
Ok, thank you all so much for your help!

Regards
Mirko