# Change dimension style

**URL:** <https://forum.dynamobim.com/t/change-dimension-style/8680>\
**Category:** Revit\
**Created:** [January 6, 2017, 3:18pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680 "2017-01-06T15:18:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [January 6, 2017, 3:18pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/1 "2017-01-06T15:18:12Z")

</div>

hi

how can i change the linear dimension style of a lot of dimension in the drawing by dynamo?

i can’t use the change family type node from archi lab because it won’t work in dynamo 1.2.1  
i tried several things  
the image is the most recent attempt

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

---

<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:** [January 6, 2017, 4:03pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/2 "2017-01-06T16:03:27Z")

</div>

See this (_Dimension.SetType_ is from _Clockwork_):

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/f/5f9b2b8ca74ce19d044b857467a4e3631f978bf3.JPG)

---

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [January 6, 2017, 4:19pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/3 "2017-01-06T16:19:59Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/4/0465afd6a37341e15f4d6df801a88ebbcc7a4e72.JPG)

Thanks Yna

but i stil get a empty list by succes  
also when i use all elements of category

could it have something to do with my other problem:  
Notification : System.IO.FileLoadException  
see my other post

---

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [January 6, 2017, 4:24pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/4 "2017-01-06T16:24:19Z")

</div>

> [@System.IO.FileLoadException While loading ProrubimGridsRenumbering](https://forum.dynamobim.com/t/system-io-fileloadexception-while-loading-prorubimgridsrenumbering/8667):
>
> i get a notificatieon While loading assembly ProrubimGridsRenumbering, Version=1.0.0.0, what shoul i do? uninstall the packages prorubim? and create something else that does the samething as de Grids.DivideByOrientation node from prorubim? nico

---

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [January 6, 2017, 4:30pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/5 "2017-01-06T16:30:59Z")

</div>

i uninstalled prorubim  
Dimension set type stil gets the same result

---

<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:** [January 6, 2017, 4:34pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/6 "2017-01-06T16:34:06Z")

</div>

Look carefully at the dimension type style: you can’t change a style to another, this could be why…

---

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [January 6, 2017, 4:42pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/7 "2017-01-06T16:42:22Z")

</div>

the selected dimension and the selected type are both linear dimension style  
[Dimension Change dimension style.dyn](https://forum.dynamobim.com/uploads/short-url/9V2d8l4ajdZmE8MioLzPOgsGQYO.dyn) (10.0 KB)

here is the file

---

<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:** [January 6, 2017, 4:53pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/8 "2017-01-06T16:53:15Z")

</div>

It should work. The IN[2] item could be an inappropriate choice: try to use one with a specific name that you set by yourself, so that you can recognize it…

---

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [January 6, 2017, 5:01pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/9 "2017-01-06T17:01:52Z")

</div>

yep solved  
youre right  
a lot off thanks

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [January 6, 2017, 5:08pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/10 "2017-01-06T17:08:05Z")

</div>

There is no need to use Clockwork as this can be done with OOTB (out of the box) nodes like so. Again, pay attention to Dimension Type selected as it has to match the type that you are trying to replace. You can’t take an angular dimension and replace it with linear type.

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

EDIT:

To check dimension type style just use python like this:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/e/6e1582443682a35dac24873de2436a01277a0218.png)

```python
#Assign your output to the OUT variable.
OUT = [UnwrapElement(x).StyleType for x in IN[0]]

```

---

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [January 6, 2017, 5:15pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/11 "2017-01-06T17:15:56Z")

</div>

Thanks Konrad  
due to you guys i am learning fast

---

<div class="post-metadata">

**Author:** ![dbrokaw](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@dbrokaw](https://forum.dynamobim.com/u/dbrokaw)\
**Post date:** [March 3, 2017, 7:25pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/12 "2017-03-03T19:25:27Z")

</div>

When searching the output of the Python Script, I can not perform a “Indexof” or a List.ContainsItem". Why? It looks like a list but the values seem to be unreadable… Thoughts? Thanks for the help

---

<div class="post-metadata">

**Author:** ![dbrokaw](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@dbrokaw](https://forum.dynamobim.com/u/dbrokaw)\
**Post date:** [March 3, 2017, 7:42pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/13 "2017-03-03T19:42:22Z")

</div>

“String From Object” My Bad…

---

<div class="post-metadata">

**Author:** ![K104](https://avatars.discourse-cdn.com/v4/letter/k/90db22/32.png) [@K104](https://forum.dynamobim.com/u/K104)\
**Post date:** [December 13, 2018, 4:00pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/14 "2018-12-13T16:00:34Z")

</div>

@ Konrad  
I have followed your script but I get the error.

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

---

<div class="post-metadata">

**Author:** ![K104](https://avatars.discourse-cdn.com/v4/letter/k/90db22/32.png) [@K104](https://forum.dynamobim.com/u/K104)\
**Post date:** [December 13, 2018, 7:05pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/16 "2018-12-13T19:05:47Z")

</div>

Thanks for your time to reply, however, it does not change all of one type to another.

---

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [December 13, 2018, 7:25pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/17 "2018-12-13T19:25:11Z")

</div>

Instead of the Element.Name node  
Use the Element.Name+ node from clockwork package  
or  
the node: string from object

---

<div class="post-metadata">

**Author:** ![K104](https://avatars.discourse-cdn.com/v4/letter/k/90db22/32.png) [@K104](https://forum.dynamobim.com/u/K104)\
**Post date:** [December 13, 2018, 7:40pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/18 "2018-12-13T19:40:58Z")

</div>

Thanks for your time.

I tried both your recommendations but to no avail. I want to change all instances of a dimension type to another type. Something is missing.  
I assumed the process would follow:

1. Select an element
2. Select a type
3. select all types
4. Change type to another

I don’t see a select all types in that. Am i wrong?? I always try to get my head around something even if I am way off.

---

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [December 13, 2018, 7:56pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/19 "2018-12-13T19:56:37Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a2b6560d329f961ff3dc5bee2c9a403d484ef85f.png)

Dimension set type is from clockwork package

---

<div class="post-metadata">

**Author:** ![K104](https://avatars.discourse-cdn.com/v4/letter/k/90db22/32.png) [@K104](https://forum.dynamobim.com/u/K104)\
**Post date:** [December 13, 2018, 8:25pm UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/20 "2018-12-13T20:25:42Z")

</div>

Thank you. It is kind of working, but it is not selecting all of that type. The select model elements node allows me to select the element, but there are 100’s of that type i want to change.  
The reason why I can not just select a type and select all instances in project, there are some groups across multiple views, so it does not allow me to select them all just change the type.

---

<div class="post-metadata">

**Author:** ![Nico\_Stegeman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nico_stegeman/32/19204_2.png) [@Nico\_Stegeman](https://forum.dynamobim.com/u/Nico_Stegeman)\
**Post date:** [December 14, 2018, 6:36am UTC](https://forum.dynamobim.com/t/change-dimension-style/8680/21 "2018-12-14T06:36:03Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/e/4e7b073a3b9703d03b37923e3a9eff114ce2706e.png)
