InterferenceStyle Class

Defines how a pipe interference appears in plan, profile, section, and 3D view.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    DisposableWrapper
      RXObject
        Drawable
          DBObject
            Autodesk.Civil.DatabaseServicesDBObject
              Autodesk.Civil.DatabaseServices.StylesStyleBase
                Autodesk.Civil.DatabaseServices.StylesInterferenceStyle

Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public sealed class InterferenceStyle : StyleBase

The InterferenceStyle type exposes the following members.

Properties
 NameDescription
Public propertyAbsoluteModelSize Gets or sets the absolute model size.
Public propertyApplication Gets the Application associated with the DBObject. Not implemented.
(Inherited from DBObject)
Public propertyCreateByGets or Sets the "Created by" string for the style.
(Inherited from StyleBase)
Public propertyDateCreatedGets the "Date created" string for the style.
(Inherited from StyleBase)
Public propertyDateModifiedGets the "Date modified" string for the style.
(Inherited from StyleBase)
Public propertyDescription Gets or sets the description.
(Inherited from DBObject)
Public propertyDocument Gets the Document associated with the DBObject. Not implemented.
(Inherited from DBObject)
Public propertyDrawingScaleModelSize Gets or sets the drawing scale model size.
Public propertyIsUsed Gets whether the style is used by other objects in the current drawing.
(Inherited from DBObject)
Public propertyMarkerStyle Gets or sets the marker style.
Public propertyModelOptions Gets or sets the model options, TrueSolid or Sphere.
Public propertyModelSizeOptions Gets or sets the model size options, UseAbsoluteUnits or UseDrawingScale.
Public propertyModelSizeType Gets or sets the interference size type, SolidExtents or UserDefined.
Public propertyModifiedByGets the "Modified by" string for the style.
(Inherited from StyleBase)
Public propertyNameSets the "Name" string for the style.
(Inherited from StyleBase)
Top
Methods
 NameDescription
Public methodCopyAsSibling Copy the current style and add it to the parent node as a sibling.
(Inherited from StyleBase)
Public methodExportTo(Database, StyleConflictResolverType) Exports the current style to another drawing.
(Inherited from StyleBase)
Public methodGetDisplayStyleModel Gets the DisplayStyle object that defines the model style for the component indicated by the specified InterferenceDisplayStyleType value.
Public methodGetDisplayStylePlan Gets the DisplayStyle object that defines the Plan style for the component indicated by the specified InterferenceDisplayStyleType value.
Public methodGetDisplayStyleSection Gets the DisplayStyle object that defines the Section style for the component indicated by the specified InterferenceDisplayStyleType value.
Top
Example
C#
 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;
See Also