Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Fill a Family instance parameter

10 ANTWORTEN 10
GELÖST
Antworten
Nachricht 1 von 11
mairh_tsek
2426 Aufrufe, 10 Antworten

Fill a Family instance parameter

Hello all,

 

Is it possible to fill a family instance parameter with Dynamo. I have one type of family multiple times, and I want each element to have a different value of parameter.

Is it possible?

 

I tried the following but I get an error.

 

Thank you in advance!

 

10 ANTWORTEN 10
Nachricht 2 von 11
bin
Advisor
als Antwort auf: mairh_tsek

Is the parameter Type or Instance? 
Or maybe add “” to the string? 

Nachricht 3 von 11
onuresen50
als Antwort auf: mairh_tsek

Hi,

I made a Dynamo script several weeks ago and it was working, I didn't understand what kind of script you want to make but I guess it has similar steps with mine. So maybe you can find what you need in my sample script.

Also rather than a Code Block, you can use a String and don't use " for a parameter name

Hope it helps

Nachricht 4 von 11
mairh_tsek
als Antwort auf: onuresen50

Thank you, 

 

Rather than Code block I used string and it works.

The parameter is a Family instance parameter.

Nachricht 5 von 11
onuresen50
als Antwort auf: mairh_tsek

Happy to hear it works

Nachricht 6 von 11
mairh_tsek
als Antwort auf: onuresen50

Just a question, 

 

I noticed after the run of Dynamo, if I go to Revit and delete the value of the text parameter (that came automatically from Dynamo) and after run once again Dynamo, the parameter in Revit remains empty. Shouldn't be filled once again automatically?

Or if I change the parameter name input the second time , in Revit I get the results in the parameterName that I had during the first run and also during the second time. 

 

Thank you! 

 

 

 

Nachricht 7 von 11
onuresen50
als Antwort auf: mairh_tsek

Yes like you said, it should fill automatically again and replace the text each time.

Did you change Code Block to String for value too? or did you change it only for the parameter name?

Nachricht 8 von 11
mairh_tsek
als Antwort auf: onuresen50

@onuresen50  , 

For the first example It is ok, maybe I missed something.

 

For the second example that I gave :

Image 1 : 'Comment' parameter Name 

if I replace the 'Comments' string with 'Mark ' string and run again Dynamo the result appears in both 'Comment' and 'Mark' - Image 2  

Nachricht 9 von 11
onuresen50
als Antwort auf: mairh_tsek

After running Dynamo once, when you made a change on Dynamo and run again, it makes a new input in your Revit. it doesn't undo the previous input

 

Nachricht 10 von 11
mairh_tsek
als Antwort auf: onuresen50

Is there any way to undo the previous input?

 

Thank you !

Nachricht 11 von 11
onuresen50
als Antwort auf: mairh_tsek

Nice question, sorry I don't know it also :grinsendes_Gesicht_mit_Schweißperlen:

I will write you back when I learn it

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report