How can we create Multiple Walls using python?

Any idea how to create multiple walls using Python? Example if i want to create 1" 2" 3" 4"…47" 48" 49" 50" walls and so on so its bit hard to duplicate and create it again. Is it possible to create unlimited basic walls using Python?

A quick Google found this video tutorial, hope it helps: Revit API - How to Create Wall Types Programmatically - Part 1 - YouTube

1 Like

Thanks @scartmell i appreciate it your time, but is it possible to do with pyrevit? I am stuck in a project where i want to create 100+ walls.

Any idea how to create multiple walls using Python? Example if i want to create 1" 2" 3" 4"…47" 48" 49" 50" walls and so on so its bit hard to duplicate and create it again. Is it possible to create unlimited basic walls using Python?

@Jean-Marc could you please help?

Please look in revit api doc: Create Method (Document, Curve, ElementId, Boolean)
Put “Create walls” in loop.
Another question. What you want to achieve at the end? You want to create walls in random places or by coordinates?

Hi @PanPawel_1 ,

Thanks for reading the Question. I am new to the Pyrevit community. It is also okay to create walls in random places. I just want to save my time from duplicating 100+ walls. I think a 1" gap between every wall is enough. like 1" 2" 3" 4" . . . . . . .47" 48" 49" etc. Would it be possible for you to provide python code for revit 2020.2?

Thanks in Advance!
Amit

You can also ask ChatGPT to help translate any C# scripts you find online into python. This is absolutely possible with pyRevit.

1 Like

No, and that would be against the spirit of this community.
This community is a place to share.
Asking a question/ for help about how to do this or that is fine.

Asking someone to do something for you is different, it is a job. If you want to find someone to code something for you, write a post in the jobs section, describe the task and how much you are willing to reward the work.

So, please, next ask, first try something, then show what you tried and it’s ok to ask if you are stuck with your next step

2 Likes

I will lock the conversation for the sake of the argument.

2 Likes