Interference |
The InterferenceStyle type exposes the following members.
Name | Description | |
---|---|---|
![]() | AbsoluteModelSize | Gets or sets the absolute model size. |
![]() | Application |
Gets the Application associated with the DBObject.
Not implemented.
(Inherited from DBObject) |
![]() | CreateBy | Gets or Sets the "Created by" string for the style. (Inherited from StyleBase) |
![]() | DateCreated | Gets the "Date created" string for the style. (Inherited from StyleBase) |
![]() | DateModified | Gets the "Date modified" string for the style. (Inherited from StyleBase) |
![]() | Description |
Gets or sets the description.
(Inherited from DBObject) |
![]() | Document |
Gets the Document associated with the DBObject.
Not implemented.
(Inherited from DBObject) |
![]() | DrawingScaleModelSize | Gets or sets the drawing scale model size. |
![]() | IsUsed |
Gets whether the style is used by other objects in the current drawing.
(Inherited from DBObject) |
![]() | MarkerStyle | Gets or sets the marker style. |
![]() | ModelOptions | Gets or sets the model options, TrueSolid or Sphere. |
![]() | ModelSizeOptions | Gets or sets the model size options, UseAbsoluteUnits or UseDrawingScale. |
![]() | ModelSizeType | Gets or sets the interference size type, SolidExtents or UserDefined. |
![]() | ModifiedBy | Gets the "Modified by" string for the style. (Inherited from StyleBase) |
![]() | Name | Sets the "Name" string for the style. (Inherited from StyleBase) |
Name | Description | |
---|---|---|
![]() | CopyAsSibling |
Copy the current style and add it to the parent node as a sibling.
(Inherited from StyleBase) |
![]() | ExportTo(Database, StyleConflictResolverType) |
Exports the current style to another drawing.
(Inherited from StyleBase) |
![]() | GetDisplayStyleModel | Gets the DisplayStyle object that defines the model style for the component indicated by the specified InterferenceDisplayStyleType value. |
![]() | GetDisplayStylePlan | Gets the DisplayStyle object that defines the Plan style for the component indicated by the specified InterferenceDisplayStyleType value. |
![]() | GetDisplayStyleSection | Gets the DisplayStyle object that defines the Section style for the component indicated by the specified InterferenceDisplayStyleType value. |
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;