How to set parameters to elements with A001-A100 or 0001-1000 in dynamo?

How to set parameters to elements with a format like: A001-A100 or 001.1 - 009.9 or 0001-1000 in dynamo? Thanks in advance!

You essentially just need to group objects and get a count of them. Then you create a sequence counting up each element in each group as well as the number of groups.

Hi Nick,

Thank you for the reply. What are the node names for group objects and create a sequence counting up each element in each group?

You’ll likely want GroupByKey and Sequence. I suggest going through the Dynamo Primer to learn the basics and get a feeling for the nodes you have available. You might also want to search the forum for topics on grouping elements (by x and y coordinates is a common one) and sequencing elements. These types of questions come up all the time.

Thanks Nick. This is really helpful!

Hello @ycai9HR9Q

You can update this script as per your requirement, I have consider A001 - A020 example.

data.dyn (34.4 KB)

Thank you a lot!

Hi @honeyjain619 , Could you let me know which package includes “List.Nullitem”? It shows “unresolved” sign on my end. Thank you!

Hello @ycai9HR9Q ,

I have Add package name note on top the nodes.
data.dyn (36.7 KB)

image

Non need for a package.
To generate a null use a codeblock :
null