I am trying to find a True/False gate (that might not be the right word) for my script. I am batch-style creating views and I an experimenting with a different method.
I am looking for a node that can allow/block the creating of new views based on Boolean input. I have not found a node from the packages I have downloaded yet. I am creating views based on UI, compliments of the Data-Shapes package, to create views based on sub-discipline with attributed templates. But the main issue I am facing is getting my script to function the way I NeedâŚany help is appreciated.
Thanks @jacob.small I gave the If/Then code block a try. But I am not sure how to integrate that into my script in a format that it will accept. I was curious if any nodes for creating elements had the toggle like they do for deleting them (see image).
Instead of the pass through, the test goes first, then the if true is the thing offscreen that would only want to continue if it was true, and the if false can be replaced by a null.
If the test is true, pass the result. If the pass is false never mind perform functions on nothing.
Post a more complete graph with your attempt and I can mark it up for you.
What kind of output do you want from it?
It might not be necessary to do it like this. The IF statement in Dynamo is pretty weird, but it isnât useless.
Otherwise, Iâd suggest doing it like:
This is a more complete image of what is going on. I am using Data-Shapes to toggle a selection of Sub-disciplines for views to create.
After all the data-sorting is done, the inputs are separated into separate sub-disciplines for view creation. I am trying to have a toggle, similar to when you delete something (see previous post for image). If this is possible, or already exists that would be awesome.
In an ideal script, the null would not be an appropriate âactivatorâ and would not let it create the views. I donât know if this is possible
Hi there. I guess you are looking for something which allows you to set options for what parts of the script will run, and those which will not. (If you can speak grasshopper, the âdispatchâ component?)
This is what I was looking for as well, trying to create element framing in Revit with a condition. And gives no warning message for delivering and empty list. Thanks!