Jump to content

Problem with accumulating detail attrib inside FOREACH


Recommended Posts

hey,

 

so this simple problem driving me crazy. So I have a "For Each" driving by an attribute. Inside I am using a attrib promote to sum up a point attribute as SUM in details. All are integers.

 

Here is a example.

 

Iteration   detailattrib  result (sum every iteration)

1.                  5               5

2.                  3               8

3.                  2              10

4.                  4              14

..

 

My idea: sum=sum(current iteration)+sum(last iteration)

 

BUT I can't using "MERGE RESULTS".

 

I have found a thread, where Jeff uploaded a sample file. But in his file the iterator summation works only with foreach in feedback modus. But I don't want it.

 

any help woudl be great :)

 

thanks in advance.

tom

 

summation_insideforeach.hipnc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...