I’ve built a script that creates elevation views of individual elements of a given category and sets the view name to match the mark value of the element for each elevation view. The script works as I intend, but I want to build in some error handling to keep the script from attempting to create views that already exist, so that it can be run multiple times in case additional elements are added. (Right now, to successfully run the script any additional times you have to delete all of the elevation views that already exist for the elements of the category you are trying to run the script for.)
Is there a way to filter out the elements that already have a view created for them?
My thought is to have Dynamo get the value of the mark parameter for the elements and check to see if there is a view that already exists with a name that matches the mark parameter of the element and then exclude those elements prior to creating any views.