# Change all kinds of parameters from elements in groups?

**URL:** <https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159>\
**Category:** Developers\
**Created:** [June 1, 2022, 7:32am UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159 "2022-06-01T07:32:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [June 1, 2022, 7:32am UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/1 "2022-06-01T07:32:16Z")

</div>

Hello,

Is there a way to set all Values (Object.Type) to _Values can vary by group instance_

is this even exposed to Revit API ? We use it in the context of PropertyWizard but it is cruzial for Dynamo scripts. So either we forbide creating groups in our project team (_it would lead to burning cars_) or we try to enter the group elements to change…

![2022-06-01_09h25_15](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2be6abf4fa86c87971adcf74608b60d0e0623414.png)

KR

Andreas

> [@Changing parameter in elements which are part of a group](https://forum.dynamobim.com/t/changing-parameter-in-elements-which-are-part-of-a-group/13042):
>
> Hi All, I’m dealing with an issue I didn’t realize before. I want to change element parameters in a selection of elements, but some of them are part of a group. For example, I want to change a custom parameter of a wall but I get an error saying the following: Any Ideas?

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [June 1, 2022, 7:53am UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/2 "2022-06-01T07:53:49Z")

</div>

If it’s greyed out in the project parameter settingd, it’s greyed out to the revit api. Many parameters cannot vary at a group level, text is the main one that can i believe. This blocks off dynamo to most grouped objects beyond a text based level in my xp.

I’d like to think there’s a way to dive down into the group definition and muck around with its elements but havent seen a way to do this. Dynamo is blocked off from running whilst in group edit mode.

Time to get the torches out…

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [June 1, 2022, 7:58am UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/3 "2022-06-01T07:58:43Z")

</div>

@GavinNicholls ,

I’ve seen Text,longtext, Area, Volume, speed, time … they are also exposed to change.

Mostly we change length Parameters… is there way to store _doubles_ in _strings_ ?

> **[AsValueString Method](https://www.revitapidocs.com/2015/3391d3ca-829e-3952-1aa6-324010621026.htm)**
>
> Online Documentation for Autodesk's Revit API: 2015, 2016, 2017, 2017.1, 2018

Are there dynamo topics around this?

KR

Andreas

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [June 1, 2022, 8:11am UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/4 "2022-06-01T08:11:39Z")

</div>

Unfortunately the one thing they all have in common is they cannot change elements geometrically, or be tied to field types that can. You can store numbers as text, but wont be able to hook them up to length fields in the families. Theyre in a group so in principle cannot deviate from the group definition in any way which changes or relates to other elements. It’s a hardcoded revit limitation.

---

<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:** [June 1, 2022, 1:09pm UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/5 "2022-06-01T13:09:31Z")

</div>

Simply put, you cannot edit groups via the api, which means you cannot edit them via Dynamo or any other Revit add-in. This building coder blog post outlines one workflow, but as noted there this more or less removes the usefulness of groups: [The Building Coder: Editing Elements inside Groups](https://thebuildingcoder.typepad.com/blog/2010/08/editing-elements-inside-groups.html)

---

<div class="post-metadata">

**Author:** ![Daniel\_Woodcock1](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Daniel\_Woodcock1](https://forum.dynamobim.com/u/Daniel_Woodcock1)\
**Post date:** [June 1, 2022, 2:13pm UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/6 "2022-06-01T14:13:29Z")

</div>

Group editor api has been a wishlist item for like forever! I remember submitting a wishlist item like 6 years ago which got merged into another one older than that. I wonder what the upvotes are on that… Probably all the devs by now. 😂

---

<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:** [June 1, 2022, 2:20pm UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/7 "2022-06-01T14:20:19Z")

</div>

It’s a VERY big lift. If you think of the complexity of sketch editor, Group editor easily adds 10x that AND increased stability and testing concerns.

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [June 1, 2022, 2:22pm UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/8 "2022-06-01T14:22:36Z")

</div>

@Daniel_Woodcock1 ,

Actually the wish is to group instances and all _instance Parameters_ in the group are changeable…  
the identification of the group should just be by determind by _instance type and instance location_…

---

<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:** [June 1, 2022, 2:24pm UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/9 "2022-06-01T14:24:57Z")

</div>

May not matter, but you can try this: [SetAllowVaryBetweenGroups Method](https://www.revitapidocs.com/2023/6f5af0cc-2ab3-153a-e07d-78fbc12aefc1.htm)

---

<div class="post-metadata">

**Author:** ![Daniel\_Woodcock1](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Daniel\_Woodcock1](https://forum.dynamobim.com/u/Daniel_Woodcock1)\
**Post date:** [June 1, 2022, 2:42pm UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/10 "2022-06-01T14:42:09Z")

</div>

Ha, I know I know! Doesn’t stop us devs from moaning at the mere mention of no api support though! 😜

> [@jacob.small](#):
>
> May not matter, but you can try this: [SetAllowVaryBetweenGroups Method](https://www.revitapidocs.com/2023/6f5af0cc-2ab3-153a-e07d-78fbc12aefc1.htm)

This will only work on certain parameter types, I think bound by the same rules as mentioned already if memory serves me right.

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [June 1, 2022, 2:43pm UTC](https://forum.dynamobim.com/t/change-all-kinds-of-parameters-from-elements-in-groups/77159/11 "2022-06-01T14:43:15Z")

</div>

@Daniel_Woodcock1 ,

i had a similar issue here…

> [@Create group by Ids, it works - BUT?](https://forum.dynamobim.com/t/create-group-by-ids-it-works-but/60474):
>
> Hello, I create a group by Ids! It worked well but for any reason my groups are duplicated how can i avoid that? variation with selecting when i duplicate the group manualy it is not possible to have the same group naming, so is this a bugg!? i want 5x “Gruppe 1” and Ids have to remain! group 1 is already existing in the browser and it should remain unique there, how can i deal with that issue? KR …
