The Autodesk.Revit.DB.Structure.LoadBase
class represents a base class for all types of structural loads in a Revit project.
The LoadBase
class has the following properties:
ForceOrMomentDirection
: Gets or sets the direction of the load force or moment.IsProjected
: Gets or sets whether the load is projected or not.LoadCase
: Gets or sets the load case for the load.Magnitude
: Gets or sets the magnitude of the load.PointOfApplication
: Gets or sets the point of application of the load.SystemType
: Gets or sets the system type of the load.The LoadBase
class does not have any additional methods beyond those inherited from the base Object
class.
The LoadBase
class is an abstract class and cannot be directly instantiated. Instead, it functions as a base class for all types of structural loads in a Revit project, including line loads, point loads, and area loads.
// Create a new point load
Autodesk.Revit.DB.Structure.PointLoad ptLoad = new Autodesk.Revit.DB.Structure.PointLoad(
new XYZ(1, 2, 3),
new XYZ(0, 0, -1),
LoadValues.ByMagnitude(1000),
LoadNature.Dead
);
// Set the point of application and magnitude properties
ptLoad.PointOfApplication = new XYZ(4, 5, 6);
ptLoad.Magnitude = LoadValues.ByMagnitude(2000);
// Apply the load to a column
ElementId colId = new ElementId(12345);
doc.LoadsManager.AddPointLoad(colId, ptLoad);
In this example, a new point load is created with a point of application at (1, 2, 3) and a load force direction pointing downwards (0, 0, -1). The magnitude of the load is set to 1000, and the nature of the load is set to "dead". The point of application is then changed to (4, 5, 6), and the magnitude of the load is increased to 2000. Finally, the load is added to a column with the specified element ID.
Autodesk.Revit.DB.Structure.Load
Autodesk.Revit.DB.Structure.LineLoad
Autodesk.Revit.DB.Structure.AreaLoad