In the Edit>Object Menu in a module, there is a Demote option. I would like to call this function from a dxl script, or create similar functionality in a script. Anyone know how this can be done?
|
Re: Demote Object you may use the function void callStdItem_ (MA_StdItem__) to call the menu entries directly. The items are objPromoteItem and objDemoteItem. You need to set the current Object before calling these menu entries. Another option is to use the functions: void move (Object, Last__) example move (o1, last below o2) which will move object o1 into latest child of o2 void move (Object, Below__) example move (o1, below o2) which will move object o1 into first child of o2 void move (Object, Object) example move (o1, o2) which will move object o1 as next sibling to o2 The problem on this, is to think about the correct objects to use as o1 and o2 ;-)) Greetings Reik |
Re: Demote Object Reik_Schroeder - Tue Nov 25 04:36:19 EST 2008 |