Thanks for sharing the script. I tried to insert the panel schedule into the sheet using the script but it looks like dynamo does not consider view schedules and panel schedules as the same. Could you please give me some tips about inserting the panel schedules to sheets?
Itās interesting - I actually did get it to work after trying another legend on a another sheet. It will fail if the legend is already on the sheet like you say, however it will continue to fail even if I delete the legend from the sheet and try again. Itās like it works one time and then it wonāt work again even if the legend is deleted.
Regardless - this is great! Thank you for helping me out with it.
I tested deleting and adding while I was creating this and worked fine, I will look into it further and see if I can replicate the issue. If I can Iāll update and post back here.
Thanks for your reply! I looked into the Revit API Doc, there are some classes related to panel schedule under the Autodesk.Revit.DB.Electrical Namespace. However, I am not familiar with python or C#ā¦just hope the information is helpful.
From the comments by @skycostello and @lyliyiwei i have added some further functionality. The updates are as followsā¦
Updates:
Panel Schedules are now supported and can be placed by point.
Refresh port added to allow user to force a re-execution of the node, This should resolve the error of supported view types not placing on sheet if they were deleted or the previos transaction was rolled back (undo command)
Hi Daniel,
thanks for sharing the script. Iām a bit a beginner in using Dynamo. I have one question: Iām not able to filter the sheets where I want to place a particular legend. Iāve tried with a parameter( for instance āSub_Disciplineā)and GetParameterValueByName and then by filtering it with a List.FilterByBoolMask; it filters the sheet, but the error "object has no attribute ID"comes when I try to link it with the python node. Any suggestions?
Thanks very much
You are not passing a sheet element into the node, you are passing just text from what I can see. You need to plug your sheets from the āall elements of categoryā node into the ālistā port of the filter by bool node as you are currently just getting the parameter value and passing this as a as a sheet which wonāt work. Also, flatten the list of views before plugging it in also.
@Daniel_Woodcock1
It works, thanks again. The only problem now is that, if I use it for the second time, (for instance for placing another legend in other sheets), it place the new one on the correct sheets, but it adds this new one to the previous sheets too. So In the first sheet, I have 2 overlined legends.
to continue this great tread, i also im stuck with the same challenge as the poster above.
I am looking to place 1 schedule per sheet as shown in this capture. but the code right now places all view into all sheets, its probably something simple that im yet to graspt.
Yes, that is my goal at this point. Best Scenario would be to match any number of views to a desired sheet and repeat. Anyone else interested, this post is also related with graphs.
What error message are you getting in the yellow balloon? You may be using one of the older versions of the node as it only has 3 ports and the new one has a refresh port.
I got it fixed, @john_pierson actually assisted me, the input I was feeding āIN[0]ā was not correct and we got that sorted. Is it possible that you can make this a custom node and publish it on the package manager? This workflow is really awesome and very beneficial!