1
General Board / Re: The Project Tree
« on: April 20, 2004, 03:32:41 pm »
Hi Thomas, Bruce
Is there any way that we can set the heirarchical position of the element using the Automation interface?
For example, I would like to add some elements to an exisiting element, but as child elements.
Currently I am using AddNew() on the parent element's Elements collection (heh.. that looks confusing). But after Update() and Refresh() the new children do not seem to be showing up in the project tree view at all.
I created some of my own elements in the actual EA application to experiment. I structured them hierarchically and noticed that child elements appear in both the package's Elements collection and in the Elements collection of their parent element. This has me confused, should I be adding the new child element to the parent element's Elements collection or the package's Elements collection
Any advice would be much appreciated!
Thanks,
Ian
I started a related thread at http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.cgi?board=Automation;action=display;num=1082417487
Is there any way that we can set the heirarchical position of the element using the Automation interface?
For example, I would like to add some elements to an exisiting element, but as child elements.
Currently I am using AddNew() on the parent element's Elements collection (heh.. that looks confusing). But after Update() and Refresh() the new children do not seem to be showing up in the project tree view at all.
I created some of my own elements in the actual EA application to experiment. I structured them hierarchically and noticed that child elements appear in both the package's Elements collection and in the Elements collection of their parent element. This has me confused, should I be adding the new child element to the parent element's Elements collection or the package's Elements collection
Any advice would be much appreciated!
Thanks,
Ian
I started a related thread at http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.cgi?board=Automation;action=display;num=1082417487