deleting a body

Asked by Fernando Renato da Silva Santos

Hello,

I would like to know,if is possible to erase a body using python script.

Thank you,
Fernando Santos

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jérôme Duriez
Solved:
Last query:
Last reply:
Revision history for this message
Best Jérôme Duriez (jduriez) said :
#1

Hello,

See O.bodies.erase(id of the body).

It has been often discussed on the various lists, but I'm not aware of all details and never used it personly, so I can not confirm strictly that you will not have to perform another manual task so that things go well after (about refreshing the list of interactions for ex) => give a look (or wait for other answers)

Revision history for this message
Fernando Renato da Silva Santos (fernando-renatosantos) said :
#2

Thank you jduriez,
I was typing body instead of bodies

Revision history for this message
Chiara Modenese (chiara-modenese) said :
#3

On 15 Jun 2012, at 14:36, jduriez wrote:

> Question #200537 on Yade changed:
> https://answers.launchpad.net/yade/+question/200537
>
> Status: Open => Answered
>
> jduriez proposed the following answer:
> Hello,
>
> See O.bodies.erase(id of the body).
Fernando,
Thanks to various fixes by Anton, the line above should work fine (even with saving/reloading simulations). Make sure you use the latest Yade version (or Yade daily).
Chiara

>
> It has been often discussed on the various lists, but I'm not aware of
> all details and never used it personly, so I can not confirm strictly
> that you will not have to perform another manual task so that things go
> well after (about refreshing the list of interactions for ex) => give a
> look (or wait for other answers)
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp