VectorAtPoint
Stores vectors at one domain point. Each vector corresponds to a “measurement” for which this vector was calculated.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.ValueAtPointBase
Autodesk.Revit.DB.Analysis.VectorAtPoint
Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class VectorAtPoint : ValueAtPointBase
The VectorAtPoint type exposes the following members.
Constructors
Name
Description
Public Method
VectorAtPoint(IList.XYZ.)
Creates object from an array of vectors
Public Method
VectorAtPoint(VectorAtPoint)
Creates a copy of the given VectorAtPoint instance.
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
(Inherited from ValueAtPointBase)
Methods
Name
Description
Public Method
ClearAllFlags
Sets flags for all measurements to ValueAtPointFlags::None.
(Inherited from ValueAtPointBase)
Public Method
ClearFlagsAt
Sets flags for the given measurement to ValueAtPointFlags::None.
(Inherited from ValueAtPointBase)
Public Method
Dispose
(Inherited from ValueAtPointBase)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetFlags
Returns flags for the given measurement.
(Inherited from ValueAtPointBase)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
SetFlags(IList.Int32.)
Independently sets the flags associated to all measurements.
(Inherited from ValueAtPointBase)
Public Method
SetFlags(Int32)
Sets the flags associated to all measurements to the same value.
(Inherited from ValueAtPointBase)
Public Method
SetFlags(Int32, Int32)
Sets the flags associated to a given measurement.
(Inherited from ValueAtPointBase)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Example
// Place analysis results in the form of vectors at each of a beam or column's analytical model curveTransform transform = analyticalElem.GetTransform();int index = spatialFieldManager.AddSpatialFieldPrimitive(curve, Transform.Identity);
IList<double> doubleList = new List<double>();doubleList.Add(curve.GetEndParameter(0)); // vectors will be at each end of the analytical model curvedoubleList.Add(curve.GetEndParameter(1));FieldDomainPointsByParameter pointsByParameter = new FieldDomainPointsByParameter(doubleList);
List<XYZ> xyzList = new List<XYZ>();xyzList.Add(curve.ComputeDerivatives(0, true).BasisX.Normalize()); // vectors will be tangent to the curve at its endsIList<VectorAtPoint> vectorList = new List<VectorAtPoint>();vectorList.Add(new VectorAtPoint(xyzList));xyzList.Clear();xyzList.Add(curve.ComputeDerivatives(1, true).BasisX.Normalize().Negate());vectorList.Add(new VectorAtPoint(xyzList));FieldValues fieldValues = new FieldValues(vectorList);