# Place filled Region Type

**URL:** <https://forum.dynamobim.com/t/place-filled-region-type/15382>\
**Category:** Geometry\
**Created:** [October 5, 2017, 3:45pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382 "2017-10-05T15:45:12Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![igpema](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@igpema](https://forum.dynamobim.com/u/igpema)\
**Post date:** [October 5, 2017, 3:45pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/1 "2017-10-05T15:45:12Z")

</div>

Hi Dynamo community,

I am trying to place filled regions on a sheet (legend) but I have no clue unfortunatelly.  
Any Ideas?  
Thanks in Advance! 🙂  
The Skript:

 ![place filledRegion](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/5/d59cce410322acf7824726b905c14d8f80546012.JPG)  
The Legend:  
 ![TextNote_Legend](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a727754bed252d2f6f835ba6b058eb7d9b9cf61.JPG)  
[Place Filled Region Type.dyn](https://forum.dynamobim.com/uploads/short-url/8GBwbTLk5feEdxfRLBx07Sv74bw.dyn) (5.6 KB)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 5, 2017, 3:50pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/2 "2017-10-05T15:50:13Z")

</div>

What does the error says?

I think its because of circle. Try converting circle to curve using Curve.Approximatewith Arc (Haven’t tried with circle though)

![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/d/c/dcd67aca430f39413b2ac766c7694c90f88302fb.png)

---

<div class="post-metadata">

**Author:** ![igpema](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@igpema](https://forum.dynamobim.com/u/igpema)\
**Post date:** [October 5, 2017, 3:59pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/3 "2017-10-05T15:59:47Z")

</div>

Thanks Kulkul,  
It doesnt work with a rectangle either…  
Error (translating from german…): Imputs typs doesnt match. No version from ByCurves found, the Argument´s Typ (Revit.Elements.element, Autodesk.DesignScript.Gometry.Rectangle,\_\_array) doesnt work out.

 ![place filledRegion_02](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/b/1b90220f70055f2b7d6ee10dc8f23c1a8bd956a4.JPG)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 5, 2017, 4:17pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/4 "2017-10-05T16:17:49Z")

</div>

Mmm… Try creating rectangle shape model lines and extract curves and then join the curves with polycurve.byjoinedcurves node. See if that works!

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 5, 2017, 4:42pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/5 "2017-10-05T16:42:32Z")

</div>

@igpema Make sure you convert polycurve to curves. I have tested one and it works as expected.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/9/89d7d5d37116d685823e9b04c0a354fbb6f36c61.png)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 5, 2017, 4:46pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/6 "2017-10-05T16:46:32Z")

</div>

And this is how you create filled region by circle.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/a/1ab2b74c793aa12bfd0b437eceee5a88e7e1b396.png)

---

<div class="post-metadata">

**Author:** ![igpema](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@igpema](https://forum.dynamobim.com/u/igpema)\
**Post date:** [October 5, 2017, 5:00pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/7 "2017-10-05T17:00:11Z")

</div>

Hi KulKul,

Thanks again for the quick answer, actually it should work, but I am doing something wrong cause … it doesnt. I Changed the view as well as the filled Region Type but nothing…  
Thanks in advance (i will keep trying)

 ![place filledRegion_04](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/1/814060283fc6d298b47afadab79cf2b971ac6a7b.JPG)

---

<div class="post-metadata">

**Author:** ![Michael\_Waring](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Michael\_Waring](https://forum.dynamobim.com/u/Michael_Waring)\
**Post date:** [October 5, 2017, 5:08pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/8 "2017-10-05T17:08:30Z")

</div>

I’m having the same issues with The “region Type” Input

Here’s the warning:  
“Warning: One or more of the input types are not matching. Couldn’t find a version of ByCurves that takes arguments of type (Revit.Elements.Element,\_\_array,Revit.Elements.FilledRegionType)”

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/8/18b083cedada46adb7205b76a9cb51b605d52dee.png)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 5, 2017, 5:30pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/9 "2017-10-05T17:30:21Z")

</div>

@Michael_Waring @igpema Try using Python then [FilledRegion.dyn](https://forum.dynamobim.com/uploads/short-url/9uTqj1Hj8Q2CBfWu9hY5CJZUusd.dyn) (5.7 KB)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/5/2543fd7a470f0ce4cfdd5e291d657d4480afc37f.png)

---

<div class="post-metadata">

**Author:** ![igpema](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@igpema](https://forum.dynamobim.com/u/igpema)\
**Post date:** [October 5, 2017, 5:38pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/10 "2017-10-05T17:38:01Z")

</div>

Oh yeah Kulkul,  
great job! it works!

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 6, 2017, 7:43am UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/11 "2017-10-06T07:43:19Z")

</div>

@Kulkul  
Could you please paste the code also? Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [October 6, 2017, 7:47am UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/12 "2017-10-06T07:47:21Z")

</div>

> [@Yna\_Db](#):
>
> Could you please paste the code also?

Hi @Yna_Db

I have already pasted the whole dyn script on top may be you haven’t seen that.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 6, 2017, 7:49am UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/13 "2017-10-06T07:49:31Z")

</div>

I prefer to avoid downloading files if you don’t mind, and I am sure that pasting the code it useful to any discussion about it if needed. 🙂

---

<div class="post-metadata">

**Author:** ![igpema](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@igpema](https://forum.dynamobim.com/u/igpema)\
**Post date:** [October 11, 2017, 8:11am UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/14 "2017-10-11T08:11:54Z")

</div>

Hello Kulkul or Dyn. Community,

Unfortunatelly I still can not write with Python (I start a 6 months course in two weeks 😉 )  
But due to this fact, I am stuck on the issue that I want to apply more filled region types to the script, but the Python node doesnt allow it.  
How could it be possible?  
what I want:

 ![TextNote_Legend](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a727754bed252d2f6f835ba6b058eb7d9b9cf61.JPG)  
and what I can do so far…  
 ![Schraffur_01](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/9/f93f4dd5080ed92ba6518dac24e756380bcfa41f.JPG)  
and the script:  
 ![Dyn Problem](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/e/dee608375930afaba653b3ef109a48c5e45f080f.JPG)  
[Place filled Region Type with Python.dyn](https://forum.dynamobim.com/uploads/short-url/myStC71rWs6UDjCi9sU4AR9rcmS.dyn) (14.5 KB)  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 11, 2017, 8:20am UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/15 "2017-10-11T08:20:00Z")

</div>

Please paste your code and try to identify the part you would need to modify. You can do it this way:

> [@How to get help on the Dynamo forums](https://forum.dynamobim.com/t/how-to-get-help-on-the-dynamo-forums/4677/10):
>
> Whenever you need help with a python script, be sure to paste the code into your post, mark it and press the \</\> button: [image]

See this optionally:

> [@Applying Lineloads in Dynamo from element](https://forum.dynamobim.com/t/applying-lineloads-in-dynamo-from-element/15562/3):
>
> Try using a definition like so above your inputs… def tolist(obj1): if hasattr(obj1,“iter”): return obj1 else: return [obj1] And for the input beams write the following… beams = tolist(UnwrapElement(IN[0])) This is what I use for inputs to ensure they are an iterable object. Very common point of failure in writing python nodes. (I can’t seem to format the code on my mobile, but indented code after the first line naturally)

---

<div class="post-metadata">

**Author:** ![igpema](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@igpema](https://forum.dynamobim.com/u/igpema)\
**Post date:** [October 12, 2017, 3:11pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/16 "2017-10-12T15:11:54Z")

</div>

The solution 🙂

 ![filled Regions](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/1063c5f2337835b83e22c51c31b2e0467cf89dda.JPG)  
 ![filled Regions_02](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/b/0bfa2e47ce4c69e4082451e69ae6ef883d94ec02.JPG)  
[Place filled Region Type with Python\_02.dyn](https://forum.dynamobim.com/uploads/short-url/dTVcrv6gl00CydR7lqvybgWd2Zw.dyn) (16.4 KB)

---

<div class="post-metadata">

**Author:** ![Heinrich\_Boldt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/heinrich_boldt/32/154159_2.png) [@Heinrich\_Boldt](https://forum.dynamobim.com/u/Heinrich_Boldt)\
**Post date:** [March 2, 2018, 12:20pm UTC](https://forum.dynamobim.com/t/place-filled-region-type/15382/17 "2018-03-02T12:20:10Z")

</div>

Thank you for this nice \*.dyn.

I change it a little bit for us to place all FilledRegionTypes in a Drafting View.

Next Steps could be, tag them with Type-Name and how many Elements in project. But this next time 🙂  
[Place all FilledRegionTypes in File on a DraftingView\_variabel.dyn](https://forum.dynamobim.com/uploads/short-url/bOVpAquq1w7iaZAyIfrDg9Gzr8Z.dyn) (37.3 KB)
