Is there a way to only place tags where a certain parameter is filled.
We have a pipe tag with a pipe number for our prefabrication to be displayed on a sheet, but when I use the tag all button, the tags are also placed on a pipe where this parameter is not entered. I just want to place a tag at the pipe where that particular parameter is entered with a letter or number, for example.
Can someone please help me with a start for such a script.
I don’t have Dynamo on the computer at home at the moment, so if anyone else can step in, please do.
Or provide a screenshot, so i can see what you have
My list with zero values that i not want to see won’t get errased. After that the tag must be placed on the view that i selected in the beginning of this script.
So i will try to play with it but if you can help me a bit that would be nice.
The list of numbers contains also so empty values. These values i don’t want to see because otherwise the tag is also placed at these pipes where no value is in the parameter.
You can try to compare the values in the list using the == (equals) node.
Other options are > ,<, >= and >= nodes (there are more)
The nodes will give you a boolean to work with
Your values are strings so you can’t check for x >= 0. You need to look for x == "" (blank values). You’re also filtering the parameter values and not the elements before passing them along to the tag node.
As I said above, you’re providing the parameter value and not the element. Removing the empties isn’t really going to help because you still have to filter the elements.
How do i filter the elements in this script.
Please can you help me what i have to do. I understand now what i did.
But i need the next step to filter on only the elements a not on the paramter values.
Create New parameter For Pipes And make It Integer not text then use any operator (>=) then use is null node . note you must define the location of tag like in the attached photo
Not sure if numbers will work as some of the parameter values shown begin or end with a alphabetical character. So i think the parameter value will have to remain a string.
So maybe instead of the null route could go with just seeing if the parameter has a value?