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.
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!!!