Lines Category in Dynamo for Revit 2023 and later

Just use the category by id operation. This was discussed previously here:

2 Likes