Author Topic: Element Heirarchy  (Read 4019 times)

klatchy

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Element Heirarchy
« on: April 19, 2004, 04:31:27 pm »
I am trying to add some elements in so that there will be some kind of heirarchy between the elements. E.g:

Element1
     |_____Element1.1
                      |_______Element1.1.1


I have tried do Element1.Elements.AddNew(blah, blah), and also
Element1.EmbeddedElements.AddNew(blah, blah) both to no avail.

I think the elements are being added in fine. But the project treeview doesn't show any of my children elements. I am also calling update() and refresh() as required. Any guesses as to what the problem could be?

Thanks in advance

[edit] OK, Element1.Elements.AddNew(blah, blah) creates the the new object, I call update() on it and the returned value is true, so supposedly the new element is updated and added to the database.

BUT, i call refresh and then check the size of the Elements collection it was still the same size as before the new element was added. So I think this is why the child elements are not appearing on the project tree view. Weird! Is there anything i'm doing wrong?[/edit]
« Last Edit: April 19, 2004, 10:12:23 pm by klatchy »