AssemblyStyle Class

Used to control the visual style of an Assembly object.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    DisposableWrapper
      RXObject
        Drawable
          DBObject
            Autodesk.Civil.DatabaseServicesDBObject
              Autodesk.Civil.DatabaseServices.StylesStyleBase
                Autodesk.Civil.DatabaseServices.StylesAssemblyStyle

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

The AssemblyStyle type exposes the following members.

Properties
 NameDescription
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 propertyIsUsed Gets whether the style is used by other objects in the current drawing.
(Inherited from DBObject)
Public propertyMarkerStyleAtAssemblyOriginId Gets the ID of the marker style at the Assembly origin.
Public propertyMarkerStyleAtMainBaselineId Gets the ID of the marker style at the Assembly main baseline.
Public propertyMarkerStyleAtMainBaselineOriginId Gets the ID of the marker style at the Assembly main baseline origin.
Public propertyMarkerStyleAtOffsetBaselineId Gets the ID of the marker style at the Assembly offset baseline.
Public propertyMarkerStyleAtOffsetBaselineOriginId Gets the ID of the marker style at the Assembly offset baseline origin.
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 specifies the corridor model display components.
Public methodGetDisplayStylePlan Gets the DisplayStyle object that specifies the corridor plan display components.
Top
Example
C#
 1// Add a new assembly style to the document:
 2ObjectId objId = doc.Styles.AssemblyStyles.Add("Style1");
 3AssemblyStyle oAssemblyStyle = ts.GetObject(objId, OpenMode.ForWrite) as AssemblyStyle;
 4objId = oAssemblyStyle.MarkerStyleAtMainBaselineId;
 5MarkerStyle oMarker = ts.GetObject(objId, OpenMode.ForWrite) as MarkerStyle;
 6oMarker.CustomMarkerStyle = CustomMarkerType.CustomMarkerX;
 7oMarker.MarkerDisplayStylePlan.Color = Color.FromColorIndex(ColorMethod.ByAci, 10); // red
 8oMarker.MarkerDisplayStylePlan.Visible = true;
 9
10ts.Commit();
See Also