M

PointLoad.Create

Description:
Creates a new non-hosted point load within the project using data at point.
public static PointLoad Create(
	Document aDoc,
	XYZ point,
	XYZ forceVector,
	XYZ momentVector,
	PointLoadType symbol,
	SketchPlane plane
)
Return Value nullNothingnullptr If successful, returns the newly created PointLoad, null Nothing nullptr a null reference ( Nothing in Visual Basic) otherwise.
public PointLoad CreatePointLoad(Autodesk.Revit.DB.Document document)
{
   //Define the location at which the PointLoad is applied. 
    XYZ point = new XYZ(0, 0, 4);
    //Define the 3d force vector. 
    XYZ force = new XYZ(0, 0, -1);
    //Define the 3d moment vector. 
    XYZ moment = new XYZ(0, 0, 0);

    PointLoad pointLoad = PointLoad.Create(document, point, force, moment, null, null);

    return pointLoad;
}