Dynamo: Avoid too much wires (Part 2)

In my previous blog Dynamo: Avoid too much wires I explained how values, that are used often in your script, can be defined in code blocks using designscript functions. Doing so you can recall the values anywhere in your script by calling the function in a code block without you need to create wires between the nodes.

But this is not only valid for typical data types like strings and values. No, you can use it to predefine values of any data type.

If, for example, you need to use the same Revit family type definition several times in your script, you can do this as well in a function.

Fam_Type_In_Function

After doing so, when you need to use the family type somewhere in your script, you can just call the function in a code block. No need to create wires!!!

Call_Fam_Type_In_Function

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s