Revit 2025.3 API
Load |
Creates a new LoadUsage.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public static LoadUsage Create( Document document, string name )
Public Shared Function Create ( document As Document, name As String ) As LoadUsage
public: static LoadUsage^ Create( Document^ document, String^ name )
static member Create : document : Document * name : string -> LoadUsage
Parameters
- document Document
- The Document to which new load usage element will be added.
- name String
- The name of the load usage.
Return Value
LoadUsageThe newly created load usage element if successful, otherwise.
| Exception | Condition |
|---|---|
| ArgumentException | The given name is not unique |
| ArgumentNullException | A non-optional argument was null |
See Also