|Re: [ATL] Delete Element in refining mode [message #80975 is a reply to message #80945]
||Wed, 07 May 2008 08:54
| Frédéric Jouault
Registered: July 2009
> I found topics about how to delete an element from a model using
> I would like to know how to do it using refining mode execution.
In ATL 2004, deleting an element can be achieved by making sure no
reference to it is left. Because the ATL 2004 refining mode works by
copying the source model, the element to "delete" was actually "not copied".
In ATL 2006, the refining mode works by performing in-place changes.
Therefore, an actual "delete" must be performed. This is not implemented
In the mean time, you may try removing all references to the element you
want to delete. Although it will still be in the model, you may ignore
it later. For instance, the TCS extractor will ignore it because it is
not reachable from the root.
Please, note that the ATL 2006 refining mode is still experimental.
|Re: [ATL] Delete Element in refining mode [message #81431 is a reply to message #81204]
||Fri, 16 May 2008 07:29
Originally posted by: amivi.fagbegnon.gmail.com|
Finally I define 2 refinements to resolve my pb:
- first I use ATL 2006 in refining mode to do in-place update
- and in a second time I use ATL 2004 in refining mode. I use the method
destroy() in do block to delete elements.
May be it's not the optimal solution. If somebody has a better solution it
will be very kind to share it.
Powered by FUDForum
. Page generated in 0.02395 seconds