Hello,
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:
stairs-disappearing-via-python
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!
Thanks,
LoRue