How to move an object to the top of a DOORS module?

I basically know how to move an object in a module

Object oMove = object(DoorsID, mBasicCurrent);
Object oPrev = object(DestDoorsID, mBasicCurrent);

// move after
move(oMove, oPrev);

// move below
move(oMove, below oPrev);

But I can’t find how I can transfer it to the first position in the module. I did not find anything in the documentation, but somewhere I found a hint that there are three types of movement (after, bottom and top), but I did not find an example and did not get it to work.

Can someone show me how to move an object to the top of the module?

+4
source share
1 answer

Now I am doing this indirectly as follows:

Object oMove = object(DoorsID, m);
Object oFirst = first(m);
if (oMove != oFirst)
{
    move(oFirst, oMove);
    move(oMove, oFirst);
}

I move it after the first, and then the first after the second. This should not cause problems, since both objects must be at the first level as the first object.

0
source

Source: https://habr.com/ru/post/1655333/


All Articles