Used to control the visual style of an Assembly object.

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

Syntax

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

Examples

CopyC#
 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();

Inheritance Hierarchy

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

See Also