check if project parameters (including shared parameters) are used in RVT

check if project parameters (including shared parameters) are used in RVT

Ning_Zhou
Advocate Advocate
1,539 Views
4 Replies
Message 1 of 5

check if project parameters (including shared parameters) are used in RVT

Ning_Zhou
Advocate
Advocate

i'm doing cleanup in both project templates and project RVTs, want to remove all PPs which are not used in RVT, is there an easy way to check? if not then temporary deleting is the way to go?

1,540 Views
4 Replies
Replies (4)
Message 2 of 5

jlpgy
Advocate
Advocate

How do define "Not used" ?

See if this post can help?

https://forums.autodesk.com/t5/revit-api-forum/deleting-shared-parameters/m-p/7213592/highlight/true... 

 

In my working product, deleting a Shared Parameter includes 2 parts:

  1. Deleting its definition in the "manifest" file (in the App scope, instead of the Doc scope)
  2. Deleting its "binding" in a specific Doc

The above mentioned post suppies the solution of deleting in a Doc

单身狗;代码狗;健身狗;jolinpiggy@hotmail.com
0 Likes
Message 3 of 5

Ning_Zhou
Advocate
Advocate

not used means just not used, sometimes, user may create project parameter and forgot it, or used before but relevant object is deleted (i.e. family).

by the way, delete binding is not enough to completely delete SP, you need to delete SharedParameterElement too.

0 Likes
Message 4 of 5

Ning_Zhou
Advocate
Advocate

for instance, i have shared parameter "01_TITLE LINE 1" which is used in label, so this SP should be kept.

i tried using transaction when deleting to see if more than one element are deleted, in above case, i assume it's more than 2, but in fact it's 1.

i'm out of options now, must have a way to know if it's used, in above case, that SP is used in label.

 

0 Likes
Message 5 of 5

Ning_Zhou
Advocate
Advocate

let me put in another way, is it safe to delete all shared parameters without binding (i mean not binding to project parameters)? well, the reason i'm asking these questions is that i'm cleaning up project template (rvt)

0 Likes