Share

Style Object


Description

The Style object is the base class for all the drawing styles and contains methods/properties common to all the styles.

Methods

Name Description
ConvertToLocal Method that creates a local cached copy of a global style and returns the local style.
Copy Method that creates a new local Style object. The newly created style is returned.
Delete Method that deletes the Style/Layer/UnfoldMethod.
GetReferenceKey Method that generates and returns the reference key for this entity.
SaveToGlobal Method that saves this style to the global repository. If a style with the same name is found in the repository, that style is updated.
UpdateFromGlobal Method that updates this style from the global repository.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
Comments Gets and sets comments associated with the style.
InternalName Property that returns the internal name of the style. The name is the internal English name of the standard style. This name will remain constant and is not affected by locale. This name is never displayed to the user. Note that this name is not guaranteed to be unique.
InUse Property that indicates if this style is in use.
Name Gets/Sets the name of the Style.
Parent Property returning the parent of this object.
StyleLocation Property that returns the location of this style, i.e. local to the document, cached locally in the document, exists in the library. Styles that exist in the library cannot be edited.
StyleType Gets the type of the style.
Type Returns an ObjectTypeEnum indicating this object's type.
UpToDate Property that gets the up-to-date status of the style against the global repository.

Accessed From

BalloonStyle.ConvertToLocal, BalloonStyle.Copy, CentermarkStyle.ConvertToLocal, CentermarkStyle.Copy, DimensionStyle.ConvertToLocal, DimensionStyle.Copy, DrawingStandardStyle.ConvertToLocal, DrawingStandardStyle.Copy, EdgeSymbolStyle.ConvertToLocal, EdgeSymbolStyle.Copy, FeatureControlFrameStyle.ConvertToLocal, FeatureControlFrameStyle.Copy, HoleTableStyle.ConvertToLocal, HoleTableStyle.Copy, Layer.ConvertToLocal, Layer.Copy, LeaderStyle.ConvertToLocal, LeaderStyle.Copy, ObjectDefaultsStyle.ConvertToLocal, ObjectDefaultsStyle.Copy, PartsListStyle.ConvertToLocal, PartsListStyle.Copy, RevisionTableStyle.ConvertToLocal, RevisionTableStyle.Copy, SheetMetalStyle.ConvertToLocal, SheetMetalStyle.Copy, Style.ConvertToLocal, Style.Copy, Styles.Item, SurfaceTextureStyle.ConvertToLocal, SurfaceTextureStyle.Copy, TableStyle.ConvertToLocal, TableStyle.Copy, TextStyle.ConvertToLocal, TextStyle.Copy, TransitionSymbolStyle.ConvertToLocal, TransitionSymbolStyle.Copy, UnfoldMethod.ConvertToLocal, UnfoldMethod.Copy, ViewAnnotationStyle.ConvertToLocal, ViewAnnotationStyle.Copy, WeldSymbolStyle.ConvertToLocal, WeldSymbolStyle.Copy

Derived Classes

BalloonStyle, CentermarkStyle, DimensionStyle, DrawingStandardStyle, EdgeSymbolStyle, FeatureControlFrameStyle, HoleTableStyle, Layer, LeaderStyle, ObjectDefaultsStyle, PartsListStyle, RevisionTableStyle, SheetMetalStyle, SurfaceTextureStyle, TableStyle, TextStyle, TransitionSymbolStyle, UnfoldMethod, ViewAnnotationStyle, WeldSymbolStyle

Version

Introduced in version 2008

Was this information helpful?