Share

Color Object


Description

The Color object provides access to all of the components defining a color.

Methods

Name Description
GetColor Method that gets the color components of the Color object.
SetColor Method that sets the color components of the Color object.

Properties

Name Description
Blue Specifies the blue component of the color.
ColorSourceType Gets and sets the color source type.
Green Specifies the green component of the color.
Opacity Specifies the opacity value.
Red Specifies the red component of the color.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

AutoCADBlock.Color, BendNote.BackgroundColor, BendNote.Color, ChamferNote.BackgroundColor, ChamferNote.Color, ColorAssetValue.Value, ColorAssetValue.Values, ColorScheme.BottomScreenColor, ColorScheme.BottomScreenColor2D, ColorScheme.CutPreviewColor, ColorScheme.DimensionColor, ColorScheme.DOFFixedColor, ColorScheme.DOFFreeColor, ColorScheme.GripHighlightingColor, ColorScheme.HighlightColor, ColorScheme.HighlightColor2D, ColorScheme.IntersectPreviewColor, ColorScheme.JoinPreviewColor, ColorScheme.PrimarySelectColor, ColorScheme.PrimarySelectColor2D, ColorScheme.ScreenColor, ColorScheme.ScreenColor2D, ColorScheme.SecondarySelectColor, ColorScheme.TertiarySelectColor, ColorScheme.TopScreenColor, ColorScheme.TopScreenColor2D, ComponentGraphics.Color, CurveGraphics.Color, DetailDrawingView.GetComponentLineColor, DimensionStyle.Color, DimensionText.BackgroundColor, DimensionText.Color, DisplayOptions.EdgeColor, DisplayOptions.InactiveComponentsEdgeColor, DisplayOptions.TransparentComponentsEdgeColor, DisplaySettings.EdgeColor, DrawingCurve.Color, DrawingNote.Color, DrawingSettings.InvalidFeatureBasedAnnotationsColor, DrawingSketch.Color, DrawingView.GetComponentLineColor, DrawingViewHatchRegion.Color, DrawingViewLabel.Color, DSJointDefinition.ForceGlyphColor, DSJointDefinition.LoadGlyphColor, DSLoadDefinition.GlyphColor, GeneralNote.BackgroundColor, GeneralNote.Color, GraphicsColorMapper.Color, GraphicsColorMapper.MappedColor, GraphicsColorSet.Color, GroundPlaneSettings.Color, HighlightSet.Color, HoleTableStyle.InsideLineColor, HoleTableStyle.OutsideLineColor, Layer.Color, LeaderNote.BackgroundColor, LeaderNote.Color, LeaderStyle.Color, Light.Color, MarkStyle.BackLayerColor, MarkStyle.FrontLayerColor, MiniToolbarTextBox.BackgroundColor, MiniToolbarTextBox.TextColor, ModelAnnotationText.Color, NotebookOptions.ArrowColor, NotebookOptions.NoteHighlightColor, NotebookOptions.TextBackgroundColor, OGSRenderItem.AmbientColor, OGSRenderItem.DiffuseColor, OGSRenderItem.EmissiveColor, OGSRenderItem.SpecularColor, OGSRenderItem.TransmissionColor, PlanarSketch.Color, PlanarSketchProxy.Color, PointCloudRegion.Color, PublicationStage.bottomColor, PublicationStage.topColor, PunchNote.BackgroundColor, PunchNote.Color, RevisionTableStyle.InsideLineColor, RevisionTableStyle.OutsideLineColor, SectionDrawingView.GetComponentLineColor, SheetSettings.SheetColor, SheetSettings.SheetEntityHighlightColor, SheetSettings.SheetEntitySelectionColor, SheetSettings.SheetOutlineColor, Sketch.Color, Sketch3D.OverrideColor, Sketch3DProxy.OverrideColor, SketchArc.OverrideColor, SketchArcProxy.OverrideColor, SketchBlock.Color, SketchBlockDefinition.Color, SketchBlockDefinitionProxy.Color, SketchBlockProxy.Color, SketchCircle.OverrideColor, SketchCircleProxy.OverrideColor, SketchControlPointSpline.OverrideColor, SketchControlPointSplineProxy.OverrideColor, SketchedSymbol.Color, SketchEllipse.OverrideColor, SketchEllipseProxy.OverrideColor, SketchEllipticalArc.OverrideColor, SketchEllipticalArcProxy.OverrideColor, SketchEquationCurve.OverrideColor, SketchEquationCurveProxy.OverrideColor, SketchFillRegion.Color, SketchFixedSpline.OverrideColor, SketchFixedSplineProxy.OverrideColor, SketchHatchRegion.Color, SketchLine.OverrideColor, SketchLineProxy.OverrideColor, SketchOffsetSpline.OverrideColor, SketchOffsetSplineProxy.OverrideColor, SketchSpline.OverrideColor, SketchSplineHandle.OverrideColor, SketchSplineHandleProxy.OverrideColor, SketchSplineProxy.OverrideColor, SurfaceGraphics.Color, SurfaceGraphicsEdge.Color, SurfaceGraphicsFace.Color, TableFormat.InsideLineColor, TableFormat.OutsideLineColor, TableStyle.InsideLineColor, TableStyle.OutsideLineColor, TextBox.BackgroundColor, TextBox.Color, TextBoxProxy.BackgroundColor, TextBoxProxy.Color, TextStyle.Color, TextureMap.MaskColor, ThemeManager.GetComponentThemeColor, TransientObjects.CreateColor

Samples

Name Description
Write out all appearance information to a file. This sample writes out information about all of the appearances in all libraries. This can be useful when trying to use the API to modify existing appearances by allowing to easily see what information is available for an appearance.
Write out all document appearances This sample writes out information about all of the appearances in the active document. This can be useful when trying to use the API to modify existing appearances by allowing you to easily see what information is available for an appearance.
Highlight Feature Faces This sample highlights the faces of an extrusion, revolution, or hole feature. It differentiates the faces on the start cap, end cap, and side faces by highlighting them in different colors. The HighlightFeatureFaces sub highlights the feature faces. Since the highlight set objects are declared outside of this sub, the highlighting remains after the sub has finished executing. Use the ClearHighlight sub to clear the highlighting that does so by releasing the HighlightSet objects.

Version

Introduced in version 8

Was this information helpful?