Replace nodes through macro

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

How I can replace nodes through macro.

I tried all possible ways to supress 'yes no message'

Below is script I am trying. The required function is 'if Element is destroying, let it.'

*createmarkpanel nodes 1 'sdgsdg'

set n1 [hm_getmark nodes 1]

*createmarkpanel nodes 1 'sdgsdg'

set n2 [hm_getmark nodes 1]

hm_answernext 'yes';

*replacenodes $n1 $n2 1 0;

*answer yes;

hm_answernext yes;

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2008

    Do anybody knows?

    Even support is also not replying. I think it is not comes under support.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2008

    Hi Rahul,

    For replacing nodes u need to use list option instead of mark option....

    *createlistpanel & hm_getlist commands should b used....

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2008

    Hi Selva,

    Thanks for solutions but it is not working.

    I want to supress the 'Replacing this node will destroy an element. Do you wish to continue?' message.

    Thanks again...