Hi guys,
I have this issue in numbering in sequence. I managed to tag and numbering my equipments in sequence and into correct orientation, however, each equipments are treated all uniquely, and what i mean by that way, say if i have the similar family equipment side-by-side or close proximity, it will number each uniquely, 001, 002, 003 and so forth. Thats not my intention though, i wished to cluster those similar item nearer to each other into one item number. If u can look at the image I posted, the same item is grouped together under the sublists (List.GroupByKey node). but i used list.firstitem node and it only captures one of the two equipment. so when i ran the script, it adds the number into one but leave the other empty. how do i go about . Any guess? Thank you in advance
if i understand you correctly, i think if you flatten the list and remove the FirstItem node, it will force every single piece of equipment to run thru the subsequent string processing logic. it does mean the same logic will run multiple times unnecessarily, but it is a quick and dirty fix.
Hello @afiLS3BU , and welcome
Can you share an sample Rvt file to test? ( I upgraded your trust level)
01-CKP_AutoITEMNo.byCircle.dyn (202.4 KB)
Here u go.. I hope u can help. Feel free to change the parameter. My Parameter ITEM No. is actually a shared parameter.
Shared Parameter-Test.txt (14.1 KB)
@c.poupin
Hi, BimAmbit. Ive been on holiday, apologies for my hiatus. I tried that, but actually flattening would number in sequence again which i had success with it. So generally the issue is im trying to number the same family which is near to it as one item instead two separate item.
as it currently stands it reads in sequence 001, 002, 003, 004 and so on and so forth. but actually the same family should be consider as one, as u can see below right equipments the two griddles should be APAC-TR-001 instead one APAC-TR-001 and another APAC-TR-002, then on the left the two coffee machines should be APAC-TR-002 instead of APAC-TR-003 and APAC-TR-006. whereas the unique item standalone can be set standalone by itself.
The dynamo script i adjusted just recent with List.First Item and uploaded made this happen though
this is somehow good, because it understands to itemized the one similar equipment and disregard the other similar equipment besides it. But then i have to copy/paste that item number besides it into the equipment besides it. I wonder if it can add the item same ITEM no besides the other equipment automatically rather than copy/paste manually
@BimAmbit
cant we design this within the family editor? like, if we have a couple of the same family instances packed together but only want a single tag, we can set up a parameter to control how many griddles show up. then in the project environment, each griddle set will behave as an independent family instance. in other words, your original family instances now become nested families (not shared), and regardless of the parameter value (a set with 2, 3 or some others) will be taken as a single family instance hence associated with a single tag.




