# Set wall coarse fill pattern to none

**URL:** <https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920>\
**Category:** Revit\
**Created:** [May 15, 2018, 7:41am UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920 "2018-05-15T07:41:47Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [May 15, 2018, 7:41am UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/1 "2018-05-15T07:41:47Z")

</div>

Hello community,  
Following this previous topic:

> [@Modify wall Coarse Scale Fill Pattern](https://forum.dynamobim.com/t/modify-wall-coarse-scale-fill-pattern/21115):
>
> Hello guys, I am trying to do a very simple exercise, modify Coarse Scale Fill Pattern, modify wall type parameters. Do you know why my approach is incorrect???[Capture]

it would be amazing to be able to set the coarse fill pattern of all my walls to none, is this possible???

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 15, 2018, 1:12pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/2 "2018-05-15T13:12:54Z")

</div>

Try feeding a value of 0 or -1 for the element ID.

---

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [May 15, 2018, 1:52pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/3 "2018-05-15T13:52:34Z")

</div>

Hi Jacob,

good try but doesnt work as fill patterns seem to have a completelly different id sequence,

see attached

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/7/2793329526a905bd6b96a021cadd9e0fca18754a.JPG)

---

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [May 15, 2018, 1:55pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/4 "2018-05-15T13:55:09Z")

</div>

none must have a dedicated id, but which one??? not sure how I can figure it out…

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [May 15, 2018, 1:57pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/5 "2018-05-15T13:57:44Z")

</div>

Try and create the fill manually in revit and thus pull the id from that in dynamo

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [May 15, 2018, 2:07pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/6 "2018-05-15T14:07:04Z")

</div>

Can you post that dyn?

---

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [May 15, 2018, 8:27pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/7 "2018-05-15T20:27:20Z")

</div>

Hello Jonathan, I cannot create a none pattern, can I, not sure what you mean.

---

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [May 15, 2018, 8:28pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/8 "2018-05-15T20:28:08Z")

</div>

[Wall set Coarse Scale Fill Pattern & Color.dyn](https://forum.dynamobim.com/uploads/short-url/7mbYqGfhhzfZm3OZuqkvwn147rz.dyn) (7.8 KB)  
dyn attached,  
Thanks Jacob

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [May 15, 2018, 8:29pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/9 "2018-05-15T20:29:48Z")

</div>

If it cannot be done in Revit it cannot be done in dynamo, what I mean is that if you can go one way you can reverse engineer it afterwards 🙂

---

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [May 15, 2018, 8:32pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/10 "2018-05-15T20:32:26Z")

</div>

You can override none pattern in multiples ways, you can actually do it in revit, setting the pattern to none.  
The problem is dynamo do not list none, this is the issue.

---

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [May 15, 2018, 9:53pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/11 "2018-05-15T21:53:15Z")

</div>

@jacob.small was right to suggest trying -1 but when written in Dynamo alone, that value will be an integer and not an element ID. Here is a Python script that should do it by setting the BuiltInParameter, and converting in the integer -1 to an ElementID. Outputting the integer as an Element ID from Python and feeding it as the value for SetParameterByName doesn’t seem to work in this case.

```
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
import Autodesk

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

elements = IN[0]
if not isinstance(elements,list):
	elements = [elements]

bip = BuiltInParameter.COARSE_SCALE_FILL_PATTERN_ID_PARAM

nopat = ElementId(-1)

TransactionManager.Instance.EnsureInTransaction(doc)

for elem in elements:
	param = UnwrapElement(elem).get_Parameter(bip)
	param.Set(nopat)
	
TransactionManager.Instance.TransactionTaskDone()

OUT = elements
```

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [May 16, 2018, 2:00am UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/12 "2018-05-16T02:00:14Z")

</div>

@awilliams I was experimenting and I found out that you could also:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/c/4c8f2d3121e065056263bcc213a0f022576bd535.png)

It doesn’t work with -1. Does anyone know why it works with 0?

---

<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:** [May 16, 2018, 2:12am UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/13 "2018-05-16T02:12:21Z")

</div>

I was going to suggest a node from springs but you beat me to the punch 🙂  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/9/f9a5c18c46366e6b877cdca1017fc9ec11777123.png)

---

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [May 16, 2018, 7:49am UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/14 "2018-05-16T07:49:29Z")

</div>

Hello Dimitar, which version of Springs you are using, I cannot find this node!

---

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [May 16, 2018, 8:05am UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/15 "2018-05-16T08:05:45Z")

</div>

This works perfectly!!!  
Thanks

---

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [May 16, 2018, 8:09am UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/16 "2018-05-16T08:09:48Z")

</div>

Hello Amy,  
I tried this but it is giving me an error on line 25, any ideas why?  
Many thanks!!!

 ![c1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/7/f714f867e864e95a8976d4196c20d309bff0b5a3.jpg)

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [May 16, 2018, 8:11am UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/17 "2018-05-16T08:11:36Z")

</div>

@BIMadmin You need to get the wall types not the instances

---

<div class="post-metadata">

**Author:** ![BIMadmin](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@BIMadmin](https://forum.dynamobim.com/u/BIMadmin)\
**Post date:** [May 16, 2018, 8:52am UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/18 "2018-05-16T08:52:55Z")

</div>

Totally right,

Many thanks guys for your support!!!

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/a/da43c1594739a54bf30c6e32a6afd74a6e94732e.JPG)

This are the definitions if anyone fancy!! ![Set no pattern to wall coarse scale fill pattern.dyn|attachment](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/5/658b68f3783ce3ecca4ed52ef7160c5f35c6a198.dyn) (4.0 KB)  
[Set wall coarse scale fill pattern and colour.dyn](https://forum.dynamobim.com/uploads/short-url/wZYouvpvTU53LoRYcZOeoE0jS3.dyn) (7.8 KB)

---

<div class="post-metadata">

**Author:** ![ericJ9ZDG](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@ericJ9ZDG](https://forum.dynamobim.com/u/ericJ9ZDG)\
**Post date:** [February 27, 2020, 11:18pm UTC](https://forum.dynamobim.com/t/set-wall-coarse-fill-pattern-to-none/21920/19 "2020-02-27T23:18:17Z")

</div>

Nice! Bravo!
