Assembly |
The AssemblyStyle type exposes the following members.
Name | Description | |
---|---|---|
![]() | 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) |
![]() | IsUsed |
Gets whether the style is used by other objects in the current drawing.
(Inherited from DBObject) |
![]() | MarkerStyleAtAssemblyOriginId | Gets the ID of the marker style at the Assembly origin. |
![]() | MarkerStyleAtMainBaselineId | Gets the ID of the marker style at the Assembly main baseline. |
![]() | MarkerStyleAtMainBaselineOriginId | Gets the ID of the marker style at the Assembly main baseline origin. |
![]() | MarkerStyleAtOffsetBaselineId | Gets the ID of the marker style at the Assembly offset baseline. |
![]() | MarkerStyleAtOffsetBaselineOriginId | Gets the ID of the marker style at the Assembly offset baseline origin. |
![]() | 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 specifies the corridor model display components. |
![]() | GetDisplayStylePlan | Gets the DisplayStyle object that specifies the corridor plan display components. |
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();