PartSketch Class

class NXOpen.Preferences.PartSketch

Bases: object

Represents the set of Sketcher preferences applicable to entire part.

Other Sketch preference settings are available with NXOpen.Preferences.SessionSketch for settings applicable to session and with NXOpen.Preferences.SketchPreferences for Sketch specific Preferences To obtain an instance of this class, refer to NXOpen.Preferences.PartPreferences

New in version NX4.0.0.

Properties

Property Description
AutomaticDimensionColor Returns or sets the sketch automatic dimension color
ConflictingColor Returns or sets the sketch conflicting color
CurveColor Returns or sets the sketch curve color
DOFColor Returns or sets the sketch degree of freedom arrow color
DimensionColor Returns or sets the sketch dimension color
FullyDefinedColor Returns or sets the sketch fully defined constraint color
InactiveSketchColor Returns or sets the inactive sketch color
OutOfDateColor Returns or sets the sketch out of date curve color
OverconstrainedColor Returns or sets the sketch overconstrained color
PartiallyDefinedColor Returns or sets the sketch partially defined constraint color
ParticipatingDatumColor Returns or sets the sketch participating datum curve color
ReferenceCurveColor Returns or sets the sketch reference curve color
ReferenceDimensionColor Returns or sets the sketch reference dimension color
UnsolvedCurvesColor Returns or sets the sketch unsolved curves color

Methods

Property Detail

AutomaticDimensionColor

PartSketch.AutomaticDimensionColor

Returns or sets the sketch automatic dimension color

-------------------------------------

Getter Method

Signature AutomaticDimensionColor

Returns:
Return type:int

New in version NX7.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature AutomaticDimensionColor

Parameters:sketchAutomaticDimensionColor (int) –

New in version NX7.5.0.

License requirements: None.

ConflictingColor

PartSketch.ConflictingColor

Returns or sets the sketch conflicting color

-------------------------------------

Getter Method

Signature ConflictingColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ConflictingColor

Parameters:sketchConflictingColor (int) –

New in version NX4.0.0.

License requirements: None.

CurveColor

PartSketch.CurveColor

Returns or sets the sketch curve color

-------------------------------------

Getter Method

Signature CurveColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature CurveColor

Parameters:sketchCurveColor (int) –

New in version NX4.0.0.

License requirements: None.

DOFColor

PartSketch.DOFColor

Returns or sets the sketch degree of freedom arrow color

-------------------------------------

Getter Method

Signature DOFColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DOFColor

Parameters:sketchDOFColor (int) –

New in version NX4.0.0.

License requirements: None.

DimensionColor

PartSketch.DimensionColor

Returns or sets the sketch dimension color

-------------------------------------

Getter Method

Signature DimensionColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DimensionColor

Parameters:sketchDimensionColor (int) –

New in version NX4.0.0.

License requirements: None.

FullyDefinedColor

PartSketch.FullyDefinedColor

Returns or sets the sketch fully defined constraint color

-------------------------------------

Getter Method

Signature FullyDefinedColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature FullyDefinedColor

Parameters:sketchFullyColor (int) –

New in version NX4.0.0.

License requirements: None.

InactiveSketchColor

PartSketch.InactiveSketchColor

Returns or sets the inactive sketch color

-------------------------------------

Getter Method

Signature InactiveSketchColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature InactiveSketchColor

Parameters:sketchInactiveColor (int) –

New in version NX4.0.0.

License requirements: None.

OutOfDateColor

PartSketch.OutOfDateColor

Returns or sets the sketch out of date curve color

-------------------------------------

Getter Method

Signature OutOfDateColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature OutOfDateColor

Parameters:sketchOutOfDateColor (int) –

New in version NX4.0.0.

License requirements: None.

OverconstrainedColor

PartSketch.OverconstrainedColor

Returns or sets the sketch overconstrained color

-------------------------------------

Getter Method

Signature OverconstrainedColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature OverconstrainedColor

Parameters:sketchOverconstrainedColor (int) –

New in version NX4.0.0.

License requirements: None.

PartiallyDefinedColor

PartSketch.PartiallyDefinedColor

Returns or sets the sketch partially defined constraint color

-------------------------------------

Getter Method

Signature PartiallyDefinedColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature PartiallyDefinedColor

Parameters:sketchPartialColor (int) –

New in version NX4.0.0.

License requirements: None.

ParticipatingDatumColor

PartSketch.ParticipatingDatumColor

Returns or sets the sketch participating datum curve color

-------------------------------------

Getter Method

Signature ParticipatingDatumColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ParticipatingDatumColor

Parameters:sketchParticipatingDatumColor (int) –

New in version NX4.0.0.

License requirements: None.

ReferenceCurveColor

PartSketch.ReferenceCurveColor

Returns or sets the sketch reference curve color

-------------------------------------

Getter Method

Signature ReferenceCurveColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ReferenceCurveColor

Parameters:sketchReferenceCurveColor (int) –

New in version NX4.0.0.

License requirements: None.

ReferenceDimensionColor

PartSketch.ReferenceDimensionColor

Returns or sets the sketch reference dimension color

-------------------------------------

Getter Method

Signature ReferenceDimensionColor

Returns:
Return type:int

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ReferenceDimensionColor

Parameters:sketchReferenceDimensionColor (int) –

New in version NX4.0.0.

License requirements: None.

UnsolvedCurvesColor

PartSketch.UnsolvedCurvesColor

Returns or sets the sketch unsolved curves color

-------------------------------------

Getter Method

Signature UnsolvedCurvesColor

Returns:
Return type:int

New in version NX8.5.0.

License requirements: None.

-------------------------------------

Setter Method

Signature UnsolvedCurvesColor

Parameters:sketchUnsolvedCurvesColor (int) –

New in version NX8.5.0.

License requirements: None.