yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #04191
Re: [Question #147761]: Question about saving sphere pack into a file in .py script
Question #147761 on Yade changed:
https://answers.launchpad.net/yade/+question/147761
Status: Open => Answered
Anton Gladky proposed the following answer:
Hi,
please, have a look at import and export yade modules:
https://www.yade-dem.org/doc/yade.ymport.html
https://www.yade-dem.org/doc/yade.export.html
If I correctly understood you, that is all, what you need.
Anton
On Fri, Mar 4, 2011 at 10:30 AM, Beautykiller
<question147761@xxxxxxxxxxxxxxxxxxxxx> wrote:
> New question #147761 on Yade:
> https://answers.launchpad.net/yade/+question/147761
>
> Hi all,
>
> I wanna save the generated pack information into a file in .py script. I can do it in .cpp file. But I found there is no corresponding functions in pack.py while fromFile() and toFile() are available in SpherePack.hpp and .cpp.
>
> How can I save the pack into a file in .py? and how to launch the C++ functions in the .py file? need to put it into the macro YADE_CLASS_BASE_DOC_ATTRS_CTOR_PY(saying create a interface for python)?
>
> Thank you!
>
> --
> Lin Zhang
>
> 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 : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.