Associate a shared family parameter to a global parameter

I would like to associate a shared family from a nest family to a global parameter but I am running into this issue.

Here is my script:


Associate shared parameter to global parameter (current document).dyn (10.8 KB)

I am running into an issue “No parameter found by that name” but the parameter does exist in the file (shown on second picture).

I tried to change the shared parameter to an instance parameter but it doesn’t change the error.

I would be grateful if someone was able to pinpoint the root of my problem. Thank you for any help.

Here is the revit file if anyone is up for the challenge:
ASSOCIATE SHARED PARAMETER TO GLOBAL PARAMETER REVIT TEST.rvt (7.6 MB)

Try taking your [“Panel Length”]; out of the brackets so it looks like this.

image

Do the same for the TEST NEST FAMILY
image

That doesn’t work unfortunately :frowning: