Defines how a pipe interference appears in plan, profile, section, and 3D view.

Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
public sealed class InterferenceStyle : StyleBase
Visual Basic
Public NotInheritable Class InterferenceStyle _
	Inherits StyleBase
Visual C++
public ref class InterferenceStyle sealed : public StyleBase

Examples

CopyC#
 1ObjectId intStyleId;
 2intStyleId = doc.Styles.InterferenceStyles.Add("Interference style 01");
 3InterferenceStyle oIntStyle = ts.GetObject(intStyleId, OpenMode.ForWrite) as InterferenceStyle;
 4// Draw a symbol of a violet X with circle with a specified
 5// drawing size at the points of intersection.
 6oIntStyle.GetDisplayStylePlan(InterferenceDisplayStyleType.Symbol).Visible = true;
 7ObjectId markerStyleId = oIntStyle.MarkerStyle;
 8MarkerStyle oMarkerStyle = ts.GetObject(markerStyleId, OpenMode.ForWrite) as MarkerStyle;
 9oMarkerStyle.MarkerType = MarkerDisplayType.UseCustomMarker;
10oMarkerStyle.CustomMarkerStyle = CustomMarkerType.CustomMarkerX;
11oMarkerStyle.CustomMarkerSuperimposeStyle = CustomMarkerSuperimposeType.Circle;
12oMarkerStyle.MarkerDisplayStylePlan.Color = Color.FromColorIndex(ColorMethod.ByAci, 200);
13oMarkerStyle.MarkerDisplayStylePlan.Visible = true;
14oMarkerStyle.SizeType = MarkerSizeType.AbsoluteUnits;
15oMarkerStyle.MarkerSize = 5.5;
16
17// Hide any model display at intersection points.
18oIntStyle.GetDisplayStyleModel(InterferenceDisplayStyleType.Solid).Visible = false;

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    DisposableWrapper
      RXObject
        Drawable
          DBObject
            Autodesk.Civil.DatabaseServices..::..DBObject
              Autodesk.Civil.DatabaseServices.Styles..::..StyleBase
                Autodesk.Civil.DatabaseServices.Styles..::..InterferenceStyle

See Also