I came today at my office with a specific idea for my next Dynamo scrip.
My wish is simple:
When i place a floorplan view on sheet and add some sections views on it, I would like to hide (on my floorplan view) all section lines that are not on my printed sheet.
I managed to create a script that collect all sections on the active view and get the parameter “Sheet Name” for all of them.
Then i compare wit a boolean list if the sections are refering to the same “Sheet Name” as the active view.
This is working great.
But after that, I would like to hide all sections that doesn’t have the same “Sheet Name” as active view.
I tried the View.HideElements node but i always get an error message:
"AttributeError: “str” object has no attribute “IsHidden”
I looked at all topics on this forum linked to my problem but I still don’t understand why my script doesn’t want me to hide those elements. …
Thanks Marcel but that’s not what I’m looking for.
Right now, once all my section on the sheet are placed, I create a filter “No view 001” and i apply it to the view.
The thing is that after printing some 50sheets, i have a very huge filter list.
The dynamo script could help me to avoid those filters.
I hope I’m quite reaching the final point with my script but I really don’t understand why it can not hide the elements.
Yesterday was a full day trying to understand what’s wrong with my script and I still don’t understand.
The first part of my script to select the view sections I want to hide works perfectly.
But I really have an issue with the HideinView node.