Likely a conflicting Revit add-in. Make sure Revit and all the add-ins you have installed are up to date, and if he issue persists try removing all add-ins and see if the issue persists.
Thank you for your reply, i tried removing all add-ins (i didn’t have anything installed besides py-revit and BIM interoperability, i removed both but the problem persisted.
its worth to note that some scripts work fine and some don’t, and if the script doesnt work and i want to add a code block for example, i get it like this :
Post your Dynamo log and Revit journal and I’ll take a look on Monday when I get a chance. You can also read those for what dll and associated add-ins or tools may be at fault.
If it was resolved by removing packages, than a package than you may have had a version conflict due to reuse of old packages. Try reinstalling with the correct package version for you Dynamo/Revit build.