ShipDraftingViewLinesViewStyle Class — NXOpen Python API Reference 12.0.0 documentation

# ShipDraftingViewLinesViewStyle Class

class `NXOpen.Drawings.``ShipDraftingViewLinesViewStyle`

  Bases: `object`

  Represents set of Ship Drafting Lines View Style applicable to drafting views.

  Ship Drafting View lines are used for the features in Ship Design To obtain an instance of this class use `Drawings.ViewStyle.ShipDraftingViewLines()`

  New in version NX10.0.0.

# Methods

Method | Description
--- | ---
GetColor | Gets line color.
GetFont | Gets line font.
GetShipDrawingObject | Get ship drawing object status.
GetWidth | Gets line width
SetColor | The color of ship line.
SetFont | The font type of ship line.
SetShipDrawingObject | Note: The initial values are set based on the file NX_ShipAttribute.
SetWidth | The width of ship line.

# Enumerations

ShipDraftingViewLinesViewStyleLines Enumeration | Line type

# Method Detail

## GetColor

`ShipDraftingViewLinesViewStyle.``GetColor`

  Gets line color.

  Signature `GetColor(featureName, linesType)`

  Parameters:

  - featureName (str) – feature name e.g. decks, bulkheads etc.
  - linesType (`NXOpen.Drawings.ShipDraftingViewLinesViewStyleLines`) – visible or hidden line type

  Returns: |
  Return type: | Id

  New in version NX10.0.0.

  License requirements: None.

## GetFont

`ShipDraftingViewLinesViewStyle.``GetFont`

  Gets line font.

  Signature `GetFont(featureName, linesType)`

  Parameters:

  - featureName (str) – feature name e.g. decks, bulkheads etc.
  - linesType (`NXOpen.Drawings.ShipDraftingViewLinesViewStyleLines`) – visible or hidden line type

  Returns: |
  Return type: | `NXOpen.Preferences.Font`

  New in version NX10.0.0.

  License requirements: None.

## GetShipDrawingObject

`ShipDraftingViewLinesViewStyle.``GetShipDrawingObject`

  Get ship drawing object status.

  Signature `GetShipDrawingObject(featureName)`

  Parameters: | featureName (str) – feature name e.g. decks, bulkheads etc.
  Returns: | status that determines SLR for the feature
  Return type: | bool

  New in version NX10.0.0.

  License requirements: None.

## GetWidth

`ShipDraftingViewLinesViewStyle.``GetWidth`

  Gets line width

  Signature `GetWidth(featureName, linesType)`

  Parameters:

  - featureName (str) – feature name e.g. decks, bulkheads etc.
  - linesType (`NXOpen.Drawings.ShipDraftingViewLinesViewStyleLines`) – visible or hidden line type

  Returns: |
  Return type: | `NXOpen.Preferences.Width`

  New in version NX10.0.0.

  License requirements: None.

## SetColor

`ShipDraftingViewLinesViewStyle.``SetColor`

  The color of ship line.

  The value should be between UF_OBJ_MIN_COLOR and UF_OBJ_MAX_COLOR.

  Signature `SetColor(featureName, linesType, color)`

  Parameters:

  - featureName (str) – feature name e.g. decks, bulkheads etc.
  - linesType (`NXOpen.Drawings.ShipDraftingViewLinesViewStyleLines`) – visible or hidden line type
  - color (Id) – Color

  New in version NX10.0.0.

  License requirements: nx_ship_drafting (“Ship Drafting”)

## SetFont

`ShipDraftingViewLinesViewStyle.``SetFont`

  The font type of ship line.

  Signature `SetFont(featureName, linesType, font)`

  Parameters:

  - featureName (str) – feature name e.g. decks, bulkheads etc.
  - linesType (`NXOpen.Drawings.ShipDraftingViewLinesViewStyleLines`) – visible or hidden line type
  - font (`NXOpen.Preferences.Font`) – Font

  New in version NX10.0.0.

  License requirements: nx_ship_drafting (“Ship Drafting”)

## SetShipDrawingObject

`ShipDraftingViewLinesViewStyle.``SetShipDrawingObject`

  Note: The initial values are set based on the file NX_ShipAttribute.

  xml The status determines the line settings for the ship feature in a view.

  Signature `SetShipDrawingObject(featureName, singleLine)`

  Parameters:

  - featureName (str) – feature name e.g. decks, bulkheads etc.
  - singleLine (bool) – status that determines SLR for the feature

  New in version NX10.0.0.

  License requirements: nx_ship_drafting (“Ship Drafting”)

## SetWidth

`ShipDraftingViewLinesViewStyle.``SetWidth`

  The width of ship line.

  Signature `SetWidth(featureName, linesType, width)`

  Parameters:

  - featureName (str) – feature name e.g. decks, bulkheads etc.
  - linesType (`NXOpen.Drawings.ShipDraftingViewLinesViewStyleLines`) – visible or hidden line type
  - width (`NXOpen.Preferences.Width`) – Width

  New in version NX10.0.0.

  License requirements: nx_ship_drafting (“Ship Drafting”)