Dynamo script stopped working

This is a old script on our work but it stopped working.
There are some errors in the script and it doesn’t run anymore.
The file is in the attachement. (Autodesk forum)
Forum Autodesk

It has to do the following 2 things:

  • Hide all Generic Annotations on all drawings with the name: NLRS_00_GA_Symb Prefabsticker
  • Show all Generic Annotations on all drawings with the name: NLRS_00_GA_Symb Prefabsticker

NLRS_00_GA_Symb prefabsticker
There are 2 subcatogories in this family and those are:

  • Pijpnummer Hoofdleiding
  • Pijpnummer Sprinklerleiding

Can someone help me to fix this script?
Or help me with creating one that works like this.
(I have absolutely no experience with Dynamo)

This script works in an older version of Dynamo “build 0.9.1”

Hey!

That is an incredibly old version of Dynamo you mentioned there :slight_smile:
What revit version are you using?

Hey!

Revit 2019 and newer!

For starters, you should check your Dynamo version in 2019 and make sure 1.3.4 isnt installed (because Dynamo Player will default to the older version.) Revit 2019 uses 2.0, revit 2020 uses 2,3, and revit 2021 and up use 2.6 if i recall correctly.

I think the problem with your script is just that everything in it is probably way too old to work correctly.

1 Like

@MVE1112 ,

Yes i think this is the problem.
I just opened his script without any troubles

The script is opening fine.
The part that it does what is has to do. Doens’t…
I have no knowledge at all from Dynamo / Python.

So can someone help me with this one?
The Dynamo script + the family is on the autodesk forum (to short here to post anything on the forum)

The script has to work for 2.0.0 for 2019.
But I have no idea if it will work for revit 2020 and on then???