# Creating wall by profile by Python

**URL:** <https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162>\
**Category:** Packages\
**Created:** [March 9, 2015, 12:20am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162 "2015-03-09T00:20:02Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hyunu\_Kim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hyunu_kim/32/100239_2.png) [@Hyunu\_Kim](https://forum.dynamobim.com/u/Hyunu_Kim)\
**Post date:** [March 9, 2015, 12:20am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/1 "2015-03-09T00:20:02Z")

</div>

Here is a code which creates a wall by profiles in Revit API

[http://revitapisearch.com/html/6c247699-c8e5-91df-67f7-470d10fa7ba3.htm](http://revitapisearch.com/html/6c247699-c8e5-91df-67f7-470d10fa7ba3.htm)

How can I use this method in Python Script for Dynamo?

I’d like to create walls by using perimeter profiles which created in Dynamo. because the original wall node can create only rectangular ones.

Thanks.

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [March 9, 2015, 1:21am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/2 "2015-03-09T01:21:56Z")

</div>

Hi Kim,

Have a look here:

[http://dynamobim.com/forums/topic/trim-revit-walls-to-imported-surface/](http://dynamobim.com/forums/topic/trim-revit-walls-to-imported-surface/)

---

<div class="post-metadata">

**Author:** ![Hyunu\_Kim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hyunu_kim/32/100239_2.png) [@Hyunu\_Kim](https://forum.dynamobim.com/u/Hyunu_Kim)\
**Post date:** [March 9, 2015, 1:39am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/3 "2015-03-09T01:39:57Z")

</div>

Thanks Dimitar, I’ll look into it.

---

<div class="post-metadata">

**Author:** ![Dave\_Baldacchino](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@Dave\_Baldacchino](https://forum.dynamobim.com/u/Dave_Baldacchino)\
**Post date:** [March 16, 2015, 8:44am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/4 "2015-03-16T08:44:03Z")

</div>

Thanks for the link. Have you been successful Hyunu? I’m quickly finding that I need to get into the Revit API to do what I’m after, plus Python.

My goal at the moment, given there is no Dynamo node to do this, is to query a Revit object that is created through the Draw gallery with a curve and retrieve that curve. For example walls, conduit, pipes, duct and cable tray. I’m just interested in straight lines at this point and am wondering if through Python, I can access this information via the Revit API. That’s my next endeavor and would love to hear from anyone if this is possible and perhaps see a code snippet of how it’s done.

---

<div class="post-metadata">

**Author:** ![Paul\_Wintour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paul_wintour/32/9381_2.png) [@Paul\_Wintour](https://forum.dynamobim.com/u/Paul_Wintour)\
**Post date:** [March 16, 2015, 5:09pm UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/5 "2015-03-16T17:09:29Z")

</div>

Hi David!

What exactly do you need to extract? You can get the length pretty easy. And if you use Clockwork’s Element.Location node you can get the start/end points of the sketch based element.

&nbsp;

![Cable Tray](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/d/dcf3aa27f6396461ad594d2645791379f066cb7e.png)

---

<div class="post-metadata">

**Author:** ![Hyunu\_Kim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hyunu_kim/32/100239_2.png) [@Hyunu\_Kim](https://forum.dynamobim.com/u/Hyunu_Kim)\
**Post date:** [March 16, 2015, 6:39pm UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/6 "2015-03-16T18:39:44Z")

</div>

Hi Dave,

Like Paul said, the code at the link is not about querying but about creating. And yes, Dimitar’s code was exactly what I was looking for.

Here is a demo of my creation. I modified the code just a little.

[https://youtu.be/MP0\_XkO9AnY](https://youtu.be/MP0_XkO9AnY)

Thanks, Dimitar.

---

<div class="post-metadata">

**Author:** ![Julien\_Benoit1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/julien_benoit1/32/29558_2.png) [@Julien\_Benoit1](https://forum.dynamobim.com/u/Julien_Benoit1)\
**Post date:** [March 17, 2015, 2:12am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/7 "2015-03-17T02:12:15Z")

</div>

Kim, I may have a simpler workflow for this topo thing:

- create a floor bigger than the topo footprint

- get the points from topo

- edit the floor with Fllor node from Clockwork

- attach base of the walls to the floor

- hide the floor

enjoy!!

![topo walls](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/4/4e9779c21f68e0b21402528e42e4d74ed8c50b94.png)

---

<div class="post-metadata">

**Author:** ![Dave\_Baldacchino](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@Dave\_Baldacchino](https://forum.dynamobim.com/u/Dave_Baldacchino)\
**Post date:** [March 17, 2015, 3:09pm UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/8 "2015-03-17T15:09:09Z")

</div>

Hey Paul! How are you mate?

You know, you just saved me a bunch of time. That custom node does exactly what I need (and great thanks to [Andreas Dieckmann](http://dynamobim.com/forums/users/andreasdieckmann/ "Author profile") for the package!). I just need the start & end points of a few two-point placement categories. I just need to evaluate whether they are linear and treat curved ones differently. I think I can take the Python code and adapt it. I can reverse engineer something pretty good usually, but just didn’t know where to start! Thanks a ton, I owe you one 🙂

---

<div class="post-metadata">

**Author:** ![lindadeliad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lindadeliad/32/103541_2.png) [@lindadeliad](https://forum.dynamobim.com/u/lindadeliad)\
**Post date:** [September 27, 2020, 4:56pm UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/9 "2020-09-27T16:56:58Z")

</div>

Can you please teach me how to make the pyton script of this? I’ve already look your youtube channel but i do t know how to make the pyton script at the end of your tutorial…Could you please help me? It’s gonna helpful for my final assignment in architecture collage @Hyunu_Kim

---

<div class="post-metadata">

**Author:** ![Hyunu\_Kim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hyunu_kim/32/100239_2.png) [@Hyunu\_Kim](https://forum.dynamobim.com/u/Hyunu_Kim)\
**Post date:** [September 28, 2020, 12:27am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/10 "2020-09-28T00:27:43Z")

</div>

You can download any of my scripts after buying me a coffee.

2020년 9월 28일 (월) 오전 2:07, Nurlinda Adelia via Dynamo \<[dynamobim@discoursemail.com](mailto:dynamobim@discoursemail.com)\>님이 작성:

---

<div class="post-metadata">

**Author:** ![lindadeliad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lindadeliad/32/103541_2.png) [@lindadeliad](https://forum.dynamobim.com/u/lindadeliad)\
**Post date:** [September 28, 2020, 12:56am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/11 "2020-09-28T00:56:12Z")

</div>

I want it, but i don’t find your script about creating wall by profile by python in your youtube and your blog. Could you please send me the link about that script?

---

<div class="post-metadata">

**Author:** ![Hyunu\_Kim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hyunu_kim/32/100239_2.png) [@Hyunu\_Kim](https://forum.dynamobim.com/u/Hyunu_Kim)\
**Post date:** [September 28, 2020, 1:36am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/12 "2020-09-28T01:36:57Z")

</div>

which movie are you talking about?.

2020년 9월 28일 (월) 오전 10:06, Nurlinda Adelia via Dynamo \<[dynamobim@discoursemail.com](mailto:dynamobim@discoursemail.com)\>님이 작성:

---

<div class="post-metadata">

**Author:** ![lindadeliad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lindadeliad/32/103541_2.png) [@lindadeliad](https://forum.dynamobim.com/u/lindadeliad)\
**Post date:** [September 28, 2020, 1:57am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/13 "2020-09-28T01:57:18Z")

</div>

![Screenshot_20200928-095608_YouTube.jpg](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/1/11491f16dc9a1e0743981450177793b0392fac3d.jpeg)

This one… you use wallbyprofile(python) in the end… but i cant find the link to download it

---

<div class="post-metadata">

**Author:** ![Hyunu\_Kim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hyunu_kim/32/100239_2.png) [@Hyunu\_Kim](https://forum.dynamobim.com/u/Hyunu_Kim)\
**Post date:** [September 28, 2020, 4:53am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/14 "2020-09-28T04:53:13Z")

</div>

see the link  
[https://sites.google.com/site/enjoyrevit/walls-align-topo](https://sites.google.com/site/enjoyrevit/walls-align-topo)

2020년 9월 28일 (월) 오전 11:07, Nurlinda Adelia via Dynamo \<[dynamobim@discoursemail.com](mailto:dynamobim@discoursemail.com)\>님이 작성:

---

<div class="post-metadata">

**Author:** ![Hyunu\_Kim](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hyunu_kim/32/100239_2.png) [@Hyunu\_Kim](https://forum.dynamobim.com/u/Hyunu_Kim)\
**Post date:** [September 28, 2020, 4:57am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/15 "2020-09-28T04:57:35Z")

</div>

see the link  
[https://sites.google.com/site/enjoyrevit/dynamo/walls-align-topo](https://sites.google.com/site/enjoyrevit/dynamo/walls-align-topo)

2020년 9월 28일 (월) 오후 1:53, HyunWoo Kim \<[khw1016@gmail.com](mailto:khw1016@gmail.com)\>님이 작성:

---

<div class="post-metadata">

**Author:** ![lindadeliad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lindadeliad/32/103541_2.png) [@lindadeliad](https://forum.dynamobim.com/u/lindadeliad)\
**Post date:** [September 28, 2020, 5:15am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/16 "2020-09-28T05:15:11Z")

</div>

Thank you… i will check it

---

<div class="post-metadata">

**Author:** ![lindadeliad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lindadeliad/32/103541_2.png) [@lindadeliad](https://forum.dynamobim.com/u/lindadeliad)\
**Post date:** [September 28, 2020, 6:32am UTC](https://forum.dynamobim.com/t/creating-wall-by-profile-by-python/1162/17 "2020-09-28T06:32:55Z")

</div>

Can i pay your script without using paypal or credit card? I mean with your personal bank account. I’ve tried to link my debit card with paypal account which i just made but it can’t link and i can’t buy it with paypal.
