# I need to write the .his file showing me the radius all balls in pfc3d 7

**URL:** <https://forum.itascainternational.com/t/i-need-to-write-the-his-file-showing-me-the-radius-all-balls-in-pfc3d-7/1692>\
**Category:** PFC\
**Tags:** fish\
**Created:** [September 16, 2024, 1:15pm UTC](https://forum.itascainternational.com/t/i-need-to-write-the-his-file-showing-me-the-radius-all-balls-in-pfc3d-7/1692 "2024-09-16T13:15:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SahilW](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@SahilW](https://forum.itascainternational.com/u/SahilW)\
**Post date:** [September 16, 2024, 1:15pm UTC](https://forum.itascainternational.com/t/i-need-to-write-the-his-file-showing-me-the-radius-all-balls-in-pfc3d-7/1692/1 "2024-09-16T13:15:19Z")

</div>

I want to save the ball radius using Fish code. Can anyone help me modify the following code to save the radius of each ball with ball identity in any format such as .txt, .dat, etc? I am attaching the shortcode:

```
loop foreach local bp ball.list
    if ball.isgroup(bp) then
        local b_rad = ball.radius(bp)
        ball_rad = ball.radius(bp)
    endif
endloop

```
