Hi all,
I’m getting a weird error while running my scripts in Revit 2024.
[
[
Parameter is not valid.
at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(String familyName, Single emSize, GraphicsUnit unit)
Stack Trace:
Traceback (most recent call last):
File “”, line 1271, in
System.ArgumentException: Parameter is not valid.
at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(String familyName, Single emSize, GraphicsUnit unit)
]
]
The catch is that I am the only person getting this error, and only in Revit 2024. I have run the same script in Revit 2025 and get no error. It happens in all of the scripts I have made.
It’s the Multiple Input UI node from Data Shapes.
Has anyone else encountered this?
Looks like either you have the wrong version of Datashapes installed for your build, or another customization to Revit or Dynamo is causing a conflict. Disable ALL Revit add-ins and see if the issue resolves that way as your first step.
Just updated all the Data Shapes nodes, re-ran it with all the add-ons off and got the exact same error 
Grab your log from that Dynamo session, and your Revit journal and post them here - might have some clues therein.
Revit Log
journal.0112.txt (262.2 KB)
Looks like you still had DiRoots stuff loading - could be this is the wrong journal/log though. Can you check?
i ran it again with addons disabled and these are the latest logs
dynamoLog_7505d48b-dab3-4e13-95cc-3482c71a3fb7.txt (38.3 KB)
journal.0113.txt (224.9 KB)
Ok - this narrows it down quite a bit. Revit journal only shows RevitAPI mismatches betweeen 2024.0 and 2024.2, and RevitAPIUI 2024.0 and 2024.2, and a few lagging conflicts which aren’t likely related. This means the issue likely stems from a package, perhaps due to a version conflict. IronPython3 is one potential culprit but I can’t confirm yet.
Can you get a list of what packages you have installed, showing the specific versions of each?
Hi Jacob,
This is what I have installed.
Wrong version of Archi-Lab by the looks of it. You’ll want a version ending in 24, most likely 2024.217.1024. Start by resolving that and see if it fixes anything.
Hi Jacob,
Just installed version 2024.217.1024 but no luck. I’m getting the same error still.
Might want to try closing out Revit and renaming your packages folder and then getting just Datashapes running. Bit of a guessing game unfortunately.
Hi Jacob,
I’ll play with it and see what happens.
Thank you for your help.