Dynamo Script To Change Parameter Text

Dynamo Script To Change Parameter Text

tim8GAK9
Explorer Explorer
10,000 Views
4 Replies
Message 1 of 5

Dynamo Script To Change Parameter Text

tim8GAK9
Explorer
Explorer

Hey gang, need a little help here with this Dynamo script. I'm trying to execute a "find/replace" for text within a parameter of a family. Can this be done with family parameters, or only project parameters? See script -

Capture.JPG

The error I'm getting at the "set parameter by name" part is "No parameter found by that name". I can verify that our families have the "Manufacturer" parameter in them, so it does exist. Can someone help me out here?

Accepted solutions (1)
10,001 Views
4 Replies
Replies (4)
Message 2 of 5

joe_keogh
Collaborator
Collaborator

Hi @tim8GAK9 

 

I think what you're after is Revit Lookup, which will give you the correct internal Parameter name that Dynamo needs.

Joe Keogh
Director | Design Technology + Innovation
www.viewlistic.com.au

0 Likes
Message 3 of 5

FAIR59
Advisor
Advisor
Accepted solution

the Manufacturer parameter is a Type parameter and not an Instance parameter.

So you need to get the parameter from the ElementType.

Dynamo_ReplaceParameterValue.png

Message 4 of 5

tim8GAK9
Explorer
Explorer

Thanks Fair59, this worked brilliantly.

0 Likes
Message 5 of 5

CarmenStan
Explorer
Explorer

How can I add more than one string at the beginning of the script? They would both have the same parameter that I want to use find and replace on. 

0 Likes