I am new to dynamo scripting; I have list of viewports to be deleted and I have the list of viewports as string and i need to connect them into Element and i am getting warning (string cannot be connected to Element) . Could you please advise me how can i do this process without warning.
Thanks
It would be easier to give you suggestions if we could see what your graph is doing. The node you’re using requires an element input but you’re providing a string. You can’t convert a string to an element so you need to go back to where you likely got the name from the element.
I would build a dictionary with the Id’s of the views and the corresponding names.
https://primer.dynamobim.org/09_Dictionaries/9-1_What-is-a-dictionary.html
1 Like
The delete node is expecting an element input (from Sheet.Viewports
). If you need to filter then you can do that with the name, but you want to filter (or index) the viewport list, not the name list.
1 Like
Thanks for your advise. I did it with ID.Element Node.
Thank you