AnalyticalModelSelector
Description:
Defines a portion of an Analytical Model for an Element.
Defines a portion of an Analytical Model for an Element.
Remarks:
This is used to identify the portion of an analytical model of interest to a client. To identify the portion of the analytical model, the client must identify the curve in question, by using one of the following:
This is used to identify the portion of an analytical model of interest to a client. To identify the portion of the analytical model, the client must identify the curve in question, by using one of the following:
- The specific curve within the analytical model.
- The index of the curve within the analytical model.
- The start of the curve.
- The end of the curve.
- The entire curve. This is the default behavior, so this does not need specifying.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.Structure.AnalyticalModelSelector
System.Object
Autodesk.Revit.DB.Structure.AnalyticalModelSelector
public class AnalyticalModelSelector : IDisposable
public bool GetReferenceData(AnalyticalElement analyticalModelFrame)
{
Curve analyticalCurve = analyticalModelFrame.GetCurve();
if (null != analyticalCurve)
{
// test the stable reference to the curve.
AnalyticalModelSelector amSelector = new AnalyticalModelSelector(analyticalCurve);
amSelector.CurveSelector = AnalyticalCurveSelector.WholeCurve;
Reference curveReference = analyticalModelFrame.GetReference(amSelector);
// test the stable reference to the start point of the curve
amSelector.CurveSelector = AnalyticalCurveSelector.StartPoint;
Reference startPointReference = analyticalModelFrame.GetReference(amSelector);
// test the stable reference to the start point of the curve
amSelector.CurveSelector = AnalyticalCurveSelector.EndPoint;
Reference endPointReference = analyticalModelFrame.GetReference(amSelector);
}
return true;
}
| Name | Return Type | Description |
|---|---|---|
| AnalyticalModelSelector() | None | Creates a selector for the analytical model geometry. |
| AnalyticalModelSelector(AnalyticalCurveSelector) | None | Creates a selector for the analytical model geometry. |
| AnalyticalModelSelector(Curve) | None | Creates a selector based on a specific analytical curve. |
| AnalyticalModelSelector(Curve, AnalyticalCurveSelector) | None | Creates a selector based on one portion of a specific analytical curve. |
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| Name | Return Type | Description |
|---|---|---|
| CurveSelector | AnalyticalCurveSelector | The portion of the curve to be selected. |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |