Share

MarkStyle Object


Description

MarkStyle object.

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.
Delete Method that deletes this style object.
GetBackCustomLineType Method that returns information regarding the custom line type in use.
GetFrontCustomLineType Method that returns information regarding the custom line type in use.
GetReferenceKey Generate the sequence of bytes, called this object's reference key, which can be held onto beyond document edits and which will allow the caller to be bound back to the live object.
GetStrokeFontList Method that gets the array of strings containing the stroke font list.
SaveToGlobal Method that saves this style to the global repository.
SetBackCustomLineType Method that sets a the style to use custom line type from the specified .lin file.
SetFrontCustomLineType Method that sets a the style to use custom line type from the specified .lin file.
UpdateFromGlobal Method that updates this style from the global repository.

Properties

Name Description
Application Gets the root Application object. Where the property is weakly-typed, it can be set to (QueryInterfaced for) 'Application' when running with Inventor whereas, 'ApprenticeServer' when running with the Apprentice Server.
AttributeSets Gets the Attribute Sets collection on this object.
BackLayerColor Property that gets and sets the color for back Layer.
BackLayerLineType Property that gets and sets the line type for back Layer.
BackLayerLineWeight Property that gets and sets the line weight for back Layer.
BackLayerName Property that gets and sets the layer name for back layer.
FrontLayerColor Property that gets and sets the color for front Layer.
FrontLayerLineType Property that gets and sets the line type for front Layer.
FrontLayerLineWeight Property that gets and sets the line weight for front Layer.
FrontLayerName Property that gets and sets the layer name for front face.
InternalName Property that returns the unique name of the style.
InUse Property that returns whether this style is in use.
MarkDepthType Property that gets and sets the mark depth type.
MarkTextType Property that gets and sets the mark text type.
Name Property that gets and sets the name of the style.
Parent Gets the parent object from whom this object can logically be reached.
StrokesFontName Property that gets and sets the mark text strokes font name.
StyleLocation Gets the location status of the mark style.
Type Gets the constant that indicates the type of this object.
UpToDate Read-only property that gets the up-to-date status of the style against the global repository.

Accessed From

MarkGeometrySet.Style, MarkStyle.ConvertToLocal, MarkStyle.Copy, MarkStylesEnumerator.Item, PartDocument.ActiveMarkStyle

Samples

Name Description
Mark feature creation sample This sample demonstrates how to create a mark feature in part document.

Version

Introduced in version 2023

Was this information helpful?