Hi @s.proch and welcome…looks like you use clockwork and thats great for multiple replacement, its difficult to say which kind of level and lacing you need without see what you input…but its for sure play around with lacing and list level…
Hi seems when you only have one replacement on multiple indicies it cant handle…try something here or try genius loci replacement node probably it can handle it…
No worries! The method you mentioned above works perfectly for me, thank you!
Now… do you think of any simple way to cycle/repeat this process for every item from the code block in the red circle? I guess I could just copy those couple of nodes 32 times to achieve this, but I don’t think that’s the most efficient way.
What I am trying to achieve is to replace my autocad layer names with corresponding block names to be inserted in my model. Hope it makes sense.
Amigo @s.proch Buenas. I have also had a very bad experience with Replace at index, so far I have no idea how it works, in the end I ended up using an If, as long as you have both lists with the same number of Items you can create a list with Interspaced Items as you wish, if it is just replacing plain text maybe String.Replace will also help you, I hope it helps!
Hi all! Thank you for the suggestions. I don’t think Dictionaries will be of help, or at least I have no clue how to use them in this case, I am fairly new to Dynamo.
I have meanwhile got to this point. I have list of lists containing the indices and also list of lists containing appropriate numbers of replacements.
I can’t seem to make the replace node set up correctly. It seems to be working almost as I need it to. However, it puts the replacements into a sublist, creating 32 sublists (same as the number of replacements) each containing the original values and the replaced item at specific indices. Could this be done in a single list?
I hope it is clear what I am trying to achieve here. Please see the screenshot, it is all replaced correctly but on separate lists
Anyone know why the OOTB nodes don’t work? I never understood why I should have to use archilab or Clockwork nodes to accomplish this “simple” list operation.