How to create a beam system using Python

Good afternoon friends! I address to professionals. I tried to look for the possibility of creating a beam system in revit by means of a dynamo, but, alas, I could not find a suitable node, the only option was to create a beam system with the help of a python. In Revit Api, I found four methods, but the knowledge for the correct syntax of all the necessary input data, unfortunately, is not enough. I understand that I ask, perhaps, a lot, because if anyone has the opportunity and desire to share thoughts, a big thanks!!

Dynamo File

It would probably be useful to list first which elements are needed:

1 Like

Thanks for the reply, Yna_Db! I do not have the necessary experience, so I’m interested in the most understandable way for me to create a beam system using the method I scan the api, maybe it will work out, thanks!

Neither do I with this kind of elements, but since we can learn something from this discussion, an accurate information will be welcome :slight_smile:

1 Like

Hi @Myhail_Veselkin,

The DynamoPrimer contains a chapter on Python, and it also explains how to create an array of beams.
Maybe it can point you in the right direction.

Kind regards,


Hello Mark! I am very grateful to you for this link, a very interesting script, perhaps I will refuse now the idea of creating a beam system and will be thinking in the direction of creating the beams themselves. Useful information for studying!

1 Like

I’m working on the option of creating a beam system using the examples of the Revit API, it is not possible to specify the correct method to use the python. By default, for some reason, the first method is selected, the python shows an error File “”, line 42, in TypeError: expected SketchPlane, got Level. Can I somehow indicate that I need a third method?

See if this helps maybe:

1 Like

Thanks, Yna_Db, tried to create the first method. using the nodes you suggested, but now the python produces a strange error: File “”, line 43, in TypeError: expected SketchPlane, got SketchPlane

Good evening! Tell me please what am I doing wrong? It’s about creating a beam system. Thank you for attention. The script gives an error

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 44, in
Exception: A managed exception was thrown by Revit or by one of its external applications.