Dynamo Nod 'Viewsets' is missing in RVT2023

Dynamo Nod 'Viewsets' is missing in RVT2023

P&L-MEI
Participant Participant
984 Views
7 Replies
Message 1 of 8

Dynamo Nod 'Viewsets' is missing in RVT2023

P&L-MEI
Participant
Participant

Hi all,

We've been using Dynamo for some years now, with custom-made scripts. One of the most popular scripts here is the 'plot-by-viewset' where Revit/Dynamo automatically plots an entire set of sheets (to PDF) to the right papersize and saves + renames the files it at a preset location, in the way we like it as a company. Up to RVT 2022, this worked (and stil works) beautifully. However: in RVT 2023 it stopped working. It no longer supports the viewsets ('Unsupported Input Type'). Apparently, it's missing a nod. And that's where the trouble starts: the person who created the scripts no longer works at our company, I've been trying to follow a course on Dynamo but that training has been cancelled twice already. So I don't really know what to do. Yeah I've tried to Google it but there's so much information, I don't know where to start to be honest. Is there anyone who can help me out? Many thanks in advance 🙂

 

(BTW English isn't my native language so if it doesn't make sense and/or words are misspelled: sorry about that). 

0 Likes
985 Views
7 Replies
Replies (7)
Message 2 of 8

ralphdenhaan
Collaborator
Collaborator

Hi,

 

Could you share the script for review? If you are only missing the Viewsets, you can try and download the nodes from Achilab instead.

ralphdenhaan_0-1703164340350.png

 

Select Accept as Solution and Likes are always welcome. 


Ralph den Haan, (Lazy) BIM Specialist


LinkedIn | LazyBIM Blog


 

0 Likes
Message 3 of 8

P&L-MEI
Participant
Participant

PLMEI_0-1703169593934.png

PLMEI_1-1703169646949.png

 

 

0 Likes
Message 4 of 8

P&L-MEI
Participant
Participant

This is what I'm getting in Dynamo. 'Learn more' doesn't get me anything so I have absolutely no clue what to do...

0 Likes
Message 5 of 8

ralphdenhaan
Collaborator
Collaborator

You can try to create a custom Python node and place this code:

 

 

# Import necessary Dynamo libraries
import clr
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

# Import Revit API
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *

# Get the current Revit document
doc = DocumentManager.Instance.CurrentDBDocument

# Define a function to get all view sets in the project
def get_all_view_sets():
    view_sets = FilteredElementCollector(doc).OfClass(ViewSheetSet).ToElements()
    return view_sets

# Start a transaction to interact with the Revit document
TransactionManager.Instance.EnsureInTransaction(doc)

# Get all view sets in the project
all_view_sets = get_all_view_sets()

# End the transaction
TransactionManager.Instance.TransactionTaskDone()

# Output the result
OUT = all_view_sets

 

 

 

ralphdenhaan_0-1703172311855.png

 

 

Select Accept as Solution and Likes are always welcome. 


Ralph den Haan, (Lazy) BIM Specialist


LinkedIn | LazyBIM Blog


 

0 Likes
Message 6 of 8

P&L-MEI
Participant
Participant

Thanks for your reply. Good for you to know: I've never created any Dynamo scripts and/or did any programming. I've made some minor adjustments to our existing scripts. Piece of cake for you probably, huge achievement for me 😉 So the Python node you played is like Chinese to me 😐

0 Likes
Message 7 of 8

ralphdenhaan
Collaborator
Collaborator

The nodes from packages are made with C# or Python. But are not updated very often. So in this case, you can just copy the code I gave you and place it in a Python node. FYI: chatgpt can help a lot:).

ralphdenhaan_0-1703173372467.png

 

Select Accept as Solution and Likes are always welcome. 


Ralph den Haan, (Lazy) BIM Specialist


LinkedIn | LazyBIM Blog


 

0 Likes
Message 8 of 8

P&L-MEI
Participant
Participant

I'm going to look in it, many thanks in advance 🙂

0 Likes