$SUM_PARTS and $COUNT_PARTS Example in the Sand Box
I have been roaming the SandBox in the last few days as I was prototyping a way to count up doors for a project I am on. I have reached a solution for that based on some forum postings that the knowledgable Steve Schneider had contributed on using a "count" characteristic. However I will save that for another day, as it is nearly midnight and I have to give a demo in the morning.
But in looking at that solution I was interested in the $sum_parts and $count_parts syntax. There is an article in the document share given at one of the conferences, however it was probably better to see it at the conference and see how that example worked. Anyway I read that article and sort of understood how it worked, but better still there is a real example in the Sand Box.
If you want to see it then run the simulator (CU50 or from PMEVC) on Material T-PC00 on plant 3200. You will need to order a couple of configurable drives and enter a weight on each in the multi level config for the T-PC94 material.
Then check out the Dummy Material T-PC50 for the total of the parts and weights.
The dummy material has a configuration profile and class with the "holder" characteristics. Also it holds the procedures with the $sum_parts and $count_parts. These same characteristics are used in the T-PC94 materials.
So if you want to see it in action then go look at that example. My thanks to BLUMOEHR who wrote it back on 16-08-1999.
Thanks Phil Martin
3sheep Pty Ltd