Use these nodes to load connections from libraries saved in external Revit files.
To use some connections, you need to load them from connection libraries saved in Revit files independent from the current project. To do so, in a Dynamo script, use one or more of the following nodes:
- ConnectionType.LoadFromFile - use this node to get a connection type from a library (.rvt) file, using as input the connection name and the type name.
- ConnectionType.UseCurrentOrLoadFromFile - use this node to load the connection type from the source (library) file only if it does not already exist in the target (current) file.
- ConnectionType.LoadOnDemand
- use this node to load the connection type from the source (library) file only if it does not already exist in the target (current) file and if it is used by the script to create instances of this connection type (the branch of the script where this node is used).
- ConnectionType.ListFromFile (debug node) - use this node to get the list of connection types from a given file.
Note: For a working example of the ConnectionType.LoadFromFile node, see the
sample script for "Base Plate using sample connection type - Metric".
Tip: For performance considerations:
- Save the library file in the current Revit version to avoid the conversion process.
- Purge the library file of any other modeling elements, so that it only contains connection types.