AnalyticalModelSketchComponent
Description:
This is one component of an AnalyticalModelSketch, which exists to provide greater granularity over the Analytical Model than at the Element level.
This is one component of an AnalyticalModelSketch, which exists to provide greater granularity over the Analytical Model than at the Element level.
Remarks:
This may or may not be a simple one-to-one mapping to ElementIds. For instance, one Element may be defined by multiple Curve Elements within a Sketch. But another Element may not have that designation, and the individual curves are not defined by any other Elements within a document.
This may or may not be a simple one-to-one mapping to ElementIds. For instance, one Element may be defined by multiple Curve Elements within a Sketch. But another Element may not have that designation, and the individual curves are not defined by any other Elements within a document.
public class AnalyticalModelSketchComponent : IDisposable
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| EnableAutoDetect() | None | Enables Auto-detect on Sketch Component. |
| GetAnalyticalAlignmentMethod() | AnalyticalAlignmentMethod | Retrieves Analytical Alignment Method preset for Sketch Component. |
| GetAnalyticalProjectionDatumPlane() | ElementId | Retrieves Datum Plane ElementId for Analytical Projection |
| GetAnalyticalProjectionType() | AnalyticalProjectionType | Retrieves Analytical Projection Type preset for Sketch Component. |
| GetAutoDetectMatchedElements() | ICollection<ElementId> | Retrieves ElementIds that Sketch Component is Auto-detecting against. |
| GetComponentElementId() | ElementId | Retrieves ElementId of Sketch Component, if such an operation makes sense. |
| IsAutoDetectEnabled() | bool | Indicates whether Auto-detect is enabled on the given Sketch component. |
| IsValidAnalyticalAlignmentMethod(AnalyticalAlignmentMethod) | bool | Indicates whether Analytical Alignment Method is valid for Sketch Component. |
| IsValidAnalyticalProjectionType(AnalyticalProjectionType) | bool | Indicates whether Analytical Projection Type is valid for Sketch Component. |
| IsValidDatumPlaneForProjection(ElementId) | bool | Indicates whether Datum Plane is valid Analytical Projection of Sketch Component. |
| SetAnalyticalAlignmentMethod(AnalyticalAlignmentMethod) | None | Sets the Alignment Method to the supplied Analytical Alignment Method |
| SetAnalyticalProjectionDatumPlane(ElementId) | None | Sets the Analytical Projection to supplied Datum Plane. |
| SetAnalyticalProjectionType(AnalyticalProjectionType) | None | Sets the Analytical Projection to the supplied Analytical Projection Type. |
| Name | Return Type | Description |
|---|---|---|
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |