I have been working this problem for a week, so it is time to get some help.
My goal is to create multiple stairs (and landings) on a floor by adapting Python & C# examples to a Dynamo graph where I link a CAD file containing all the geometry (Boundary,Risers,Path), then filter and sort into lists to be processed by the Python script. This is part of a greater effort to create an entire floor (so far: walls, doors, floors, columns, rooms/areas) from a single file, which works.
Aside from the Preprocessor tip, could not find much (except a broken link: “Creating and Editing Stairs”).
This post got me started:
Have been getting a generic error message from the Python Node:
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last): File “string”, line 70, in “module”
Exception: A managed exception was thrown by Revit or by one of its external applications
There isn’t a console or log I can look at, is there? I’m used to Google Node.js
As you can see, my graph grabs the geometry from a CAD file, sorts the layers which contain specific geometry (Boundaries,Risers,Path) into lists. I have three separate stairs represented (too much?)
Here is my Python Script.
CreateStairs_Python.txt (2.1 KB) The hashed out lines were my attempt at following the previous forum posts, but then I realized “Wait a minute, all the lines are there!” Was able to replicate the one script that created a stair from points, but that does me no good, ultimately.
Also, I tried using VS Code and RevitAPI extension to help, but same result.
Any info is appreciated. Will share the solution, of course.
BTW, caught the Philly DUG webcast yesterday re: Dynamo 2.6 & 7. So Awesome!