RoutingMechanical Class

class NXOpen.Preferences.RoutingMechanical

Bases: object

The RoutingMechanical object stores a set of route mechanical preferences.

To obtain an instance of this class, refer to NXOpen.Preferences.RoutingApplicationView

New in version NX4.0.0.

Methods

Method Description
GetIsInitialized Returns the information of whether the mechanical preferences section exists in the application view file.
GetLineColorTypes Returns types of string in line_color field.
GetLineColors Returns the name, index or rgb strings (hex or , separated) of line color
GetLineFontIndices Returns the line font indices: line font to apply to segments in the run (currently 1-7 supported), 0 indicates unknown line font
GetLineFonts Returns the names of line font to apply to segments, only used if line_font_index is 0
GetLineWidths Returns the thicknesses of segments (currently 0-2 supported)
GetRunTypeNames Returns the names of run type displays

Enumerations

RoutingMechanicalLineColorType Enumeration Describes the Line color string definition types.

Method Detail

GetIsInitialized

RoutingMechanical.GetIsInitialized

Returns the information of whether the mechanical preferences section exists in the application view file.

Signature GetIsInitialized()

Returns:
Return type:bool

New in version NX4.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

GetLineColorTypes

RoutingMechanical.GetLineColorTypes

Returns types of string in line_color field.

Valid values are specified by the NXOpen.Preferences.RoutingMechanicalLineColorType .

Signature GetLineColorTypes()

Returns:
Return type:list of NXOpen.Preferences.RoutingMechanicalLineColorType

New in version NX4.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

GetLineColors

RoutingMechanical.GetLineColors

Returns the name, index or rgb strings (hex or , separated) of line color

Signature GetLineColors()

Returns:
Return type:list of str

New in version NX4.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

GetLineFontIndices

RoutingMechanical.GetLineFontIndices

Returns the line font indices: line font to apply to segments in the run (currently 1-7 supported), 0 indicates unknown line font

Signature GetLineFontIndices()

Returns:
Return type:list of int

New in version NX4.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

GetLineFonts

RoutingMechanical.GetLineFonts

Returns the names of line font to apply to segments, only used if line_font_index is 0

Signature GetLineFonts()

Returns:
Return type:list of str

New in version NX4.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

GetLineWidths

RoutingMechanical.GetLineWidths

Returns the thicknesses of segments (currently 0-2 supported)

Signature GetLineWidths()

Returns:
Return type:list of int

New in version NX4.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

GetRunTypeNames

RoutingMechanical.GetRunTypeNames

Returns the names of run type displays

Signature GetRunTypeNames()

Returns:
Return type:list of str

New in version NX4.0.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)