I’ve managed to get a dynamo script set up that successfully adds a “0” to the front of all of the detail numbers for all views on sheets. I’ve posted it below. Now that I’ve accomplished that, I’ve run into some problems with filtering out views that I don’t want to add the “0” to. My project currently has details with single digit numbers (1,2,3), details where the zero has already been added manually (01,02,03), and details numbers 10 and higher (10,11,12…).
I only want to add the “0” to the single digits.
I think I get the idea that I have to boolean out the views with the existing 2 digit numbers, then run both the “Parameter Value” output and “Sheet Views” output through the same boolean.
I’m looking for the most efficient way to boolean out those two digit detail numbers… any ideas?
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
@skycostello This might be a more efficient approach
Thanks Vikram - was not aware of that node. Thats, um, much more efficient! I’ll give it a shot.
Here is my updated script using Vikram’s advice. Also, I realized that I wanted to exclude any views where the detail number is a letter, so I set up a boolean mask and ran both the parameter values and the views through the filter.
It pretty much works, but there is one problem - it doesn’t always work and sometimes I get an error on the "set element parameter " node that says “this parameter is read only”. Not sure what’s causing the problem, but I suspect it’s something about the transition from “parameter by name” to “parameter value”?
Can anyone look at this and see right away what the problem is?
Here’s an image and the file:
Add Zero To Detail Numbers.dyn
What does the error says at SetParameter node?
“Warning: Element.SetParameterByName operation failed.
The parameter is read-only.”
@skycostello Could you show screenshot of the parameter properties.
Wasn’t aware of this node either! Super helpful!!! Thx