Python Node script error "No method matches given Arguments for GetNames"

Accessing native .Net Enum methods like Enum.GetNames() works fine in Dynamo 2.13 but in Dynamo 3.2, I get the error “No method matches given Arguments for GetNames” as in the attached photos
I want to get the Names because whenever i retreive enumeration from revit 2025 in python, i got the integer value instead of the String representation

import sys
import System
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *

OUT = System.Enum.GetNames(BuiltInCategory)

You can get categories with Document.Settings.Categories or try with IronPython

1 Like

thanks very much , but i was wondering why i got this error although the engine in both versions is CPython