# Shared "project" parameters vs. Shared "family" parameters

**URL:** <https://forum.dynamobim.com/t/shared-project-parameters-vs-shared-family-parameters/11928>\
**Category:** Revit\
**Created:** [May 21, 2017, 3:49pm UTC](https://forum.dynamobim.com/t/shared-project-parameters-vs-shared-family-parameters/11928 "2017-05-21T15:49:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregX](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gregx/32/56837_2.png) [@GregX](https://forum.dynamobim.com/u/GregX)\
**Post date:** [May 21, 2017, 3:49pm UTC](https://forum.dynamobim.com/t/shared-project-parameters-vs-shared-family-parameters/11928/1 "2017-05-21T15:49:16Z")

</div>

Hey everyone. I was working on a script to delete all project parameters (both project and shared-project) in a revit file but soon realised that I was accidentally selecting ALL non-system parameters, completely removing shared family parameters messing up the whole file (actually in a kind of interesting _cubist_ way).

Trying to understand something more I created an empty revit file (starting from an template) with two project parameters,one shared and one not:

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

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

I then created and placed a family which had two family parameters,one shared and one not:

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

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

I then tested this script and could not differientate shared project parameters from shared family parameters:

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

I tried reading on [http://www.revitapidocs.com](http://www.revitapidocs.com) about ParameterElements and SharedParameterElements but I’m not really finding what I want.

Is there any “internal” difference between shared project params and shared family params or is it just something that I think exists because of Revit’s user interface?  
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:** [May 21, 2017, 4:32pm UTC](https://forum.dynamobim.com/t/shared-project-parameters-vs-shared-family-parameters/11928/2 "2017-05-21T16:32:15Z")

</div>

Hi @GregX

I think its because the element associated with shared parameter was deleted but the shared parameter didn’t. If its bother you why not just delete. If your looking to get shared parameter from families use Clockwork node “Element.AssociatedFamilyParameters” node to get family shared parameters.

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

---

<div class="post-metadata">

**Author:** ![GregX](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gregx/32/56837_2.png) [@GregX](https://forum.dynamobim.com/u/GregX)\
**Post date:** [May 21, 2017, 4:50pm UTC](https://forum.dynamobim.com/t/shared-project-parameters-vs-shared-family-parameters/11928/3 "2017-05-21T16:50:57Z")

</div>

Hey @Kulkul thanks for the quick reply. The node you are suggesting only works in family document, while I would like to purge a revit project from all shared project parameters:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/c/7c4d9c7632d93a191c17cdcdf1d1b7d0c1ca348d.png)  
If there was a similar node that worked in the project environment I could filter the family shared parameters from all the shared parameters (project+family) but I guess it would make the script very slow.

Anyways I don’t really understand what you mean with “I think its because the element associated with shared parameter was deleted but the shared parameter didn’t”.

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [May 21, 2017, 7:01pm UTC](https://forum.dynamobim.com/t/shared-project-parameters-vs-shared-family-parameters/11928/4 "2017-05-21T19:01:07Z")

</div>

@GregX

Hi,  
I think this is because shared parameters can be associated with catagories and families aswell, but they are different.  
I would be great to see a post about the revit database.  
Its structure and the difference of flat databases (like excel tables) and relational databases.  
It would explain a lot. I will give it a go in a new post and ask the guru’s to correct me and elaborate on it.

add:

> [@The Revit database explained? Guru's please correct and complete](https://forum.dynamobim.com/t/the-revit-database-explained-gurus-please-correct-and-complete/11930):
>
> Hi, I will try to give you an insight on how databases work (like the Revit database in your file) and i will ask the guru’s here to correct me where im wrong and elaborate on their findings. My knowledge is some 20 years old so i might be wrong here but it is an effort, (bare with me) that could guide you. A Database is a set of tables. A database table is sort of an excel sheet If you create an excel file with column headers your colomnheaders would be called fields in a database. If you c…

Marcel

---

<div class="post-metadata">

**Author:** ![GregX](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gregx/32/56837_2.png) [@GregX](https://forum.dynamobim.com/u/GregX)\
**Post date:** [May 22, 2017, 7:49am UTC](https://forum.dynamobim.com/t/shared-project-parameters-vs-shared-family-parameters/11928/5 "2017-05-22T07:49:55Z")

</div>

> [@Listing Project Parameters](https://forum.dynamobim.com/t/listing-project-parameters/10843/3):
>
> If you need to know the category assignments: I recently added two nodes to Clockwork that will do that for you: Document.ProjectParameters will retrieve all project parameters and the categories they are assigned to. Document.ProjectParametersByCategory will retrieve all project parameters that have been assigned to a given category However, the nodes do not distinguish between simple project parameters and shared parameters.

This post helped me out. I guess that mixing Document.ProjectParameters and element type/SharedParameterElement noeds will filter shared project parameters from shared family parameters

---

<div class="post-metadata">

**Author:** ![Remy\_Maurcot](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/remy_maurcot/32/21774_2.png) [@Remy\_Maurcot](https://forum.dynamobim.com/u/Remy_Maurcot)\
**Post date:** [March 17, 2021, 8:42am UTC](https://forum.dynamobim.com/t/shared-project-parameters-vs-shared-family-parameters/11928/6 "2021-03-17T08:42:57Z")

</div>

Hi @Kulkul ,  
thank you for sharing  
I tried to do the same thing but the Elements.Delete node (Archilab) could not finish its calculation.  
Are you using the archilab node? Is there another node that allows overpressure?

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:** [March 17, 2021, 9:46am UTC](https://forum.dynamobim.com/t/shared-project-parameters-vs-shared-family-parameters/11928/7 "2021-03-17T09:46:21Z")

</div>

> [@Remy\_Maurcot](#):
>
> Are you using the archilab node?

Yep!

---

<div class="post-metadata">

**Author:** ![Remy\_Maurcot](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/remy_maurcot/32/21774_2.png) [@Remy\_Maurcot](https://forum.dynamobim.com/u/Remy_Maurcot)\
**Post date:** [March 17, 2021, 11:19am UTC](https://forum.dynamobim.com/t/shared-project-parameters-vs-shared-family-parameters/11928/8 "2021-03-17T11:19:31Z")

</div>

Ok thanks
