2020 Class
Changes 0
C

VectorAtPoint

Description:
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
// Place analysis results in the form of vectors at each of a beam or column's analytical model curve
Curve curve = familyInstance.GetAnalyticalModel().GetCurve();

Transform transform = familyInstance.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 curve
doubleList.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 ends
IList<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);
Name Return Type Description Inherited From
C VectorAtPoint(IList<XYZ>) None Creates object from an array of vectors
C VectorAtPoint(VectorAtPoint) None Creates a copy of the given VectorAtPoint instance.
Name Return Type Description Inherited From
M ClearAllFlags() None Sets flags for all measurements to ValueAtPointFlags::None. ValueAtPointBase
M ClearFlagsAt(Int32) None Sets flags for the given measurement to ValueAtPointFlags::None. ValueAtPointBase
M Dispose() None Releases all resources used by the ValueAtPointBase
M GetFlags(Int32) int Returns flags for the given measurement. ValueAtPointBase
M SetFlags(IList<Int32>) None Independently sets the flags associated to all measurements. ValueAtPointBase
M SetFlags(Int32) None Sets the flags associated to all measurements to the same value. ValueAtPointBase
M SetFlags(Int32, Int32) None Sets the flags associated to a given measurement. ValueAtPointBase
Name Return Type Description Inherited From
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity. ValueAtPointBase