PointLoad.Create(Document, XYZ, XYZ, XYZ, PointLoadType, SketchPlane)
Description:
Creates a new non-hosted point load within the project using data at point.
Creates a new non-hosted point load within the project using data at point.
Overloads (2):
Create(Document,XYZ,XYZ,XYZ,PointLoadType,SketchPlane)
public static PointLoad Create(
Document aDoc,
XYZ point,
XYZ forceVector,
XYZ momentVector,
PointLoadType symbol,
SketchPlane plane
)
-
aDocDocument to which new point load will be added.
-
pointThe position of point load, measured in decimal feet.
-
forceVectorThe applied 3d force vector.
-
momentVectorThe applied 3d moment vector.
-
symbolThe symbol of the PointLoad. Set null to use default type.
-
planeThe work plane of the PointLoad. Set null to use default plane.
Return Value
nullNothingnullptr
If successful, returns the newly created PointLoad, null 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;
}
-
Thrown when work plane is not valid.
-
A non-optional argument was null
-
Thrown when force and moment vectors are equal zero.
-
Thrown if type could not be set for newly created point load.
No comments yet. Start the discussion.
Loading…