Class: Layout::Grid

Inherits:
Object
  • Object
show all
Defined in:
SketchUp/Layout/Grid.rb

Overview

Class that references a Document‘s grid settings.

Version:

  • LayOut 2018

Instance Method Summary collapse

Instance Method Details

#major_colorSketchup::Color

The #major_color method returns the Sketchup::Color for the major grid lines.

Examples:

doc = Layout::Document.open("C:/path/to/document.layout")
grid = doc.grid
color = grid.major_color

Returns:

Version:

  • LayOut 2018



22
23
# File 'SketchUp/Layout/Grid.rb', line 22

def major_color
end

#major_spacingNumeric

The #major_spacing method returns the major space size of the Layout::Grid.

Examples:

doc = Layout::Document.open("C:/path/to/document.layout")
grid = doc.grid
major_spacing = grid.major_spacing

Returns:

Version:

  • LayOut 2018



36
37
# File 'SketchUp/Layout/Grid.rb', line 36

def major_spacing
end

#minor_colorSketchup::Color

The #minor_color method returns the Sketchup::Color for the minor grid lines.

Examples:

doc = Layout::Document.open("C:/path/to/document.layout")
grid = doc.grid
color = grid.minor_color

Returns:

Version:

  • LayOut 2018



50
51
# File 'SketchUp/Layout/Grid.rb', line 50

def minor_color
end

#minor_divisionsInteger

The #minor_divisions method returns the number of minor divisions of the Layout::Grid.

Examples:

doc = Layout::Document.open("C:/path/to/document.layout")
grid = doc.grid
minor_divisions = grid.minor_divisions

Returns:

  • (Integer)

Version:

  • LayOut 2018



64
65
# File 'SketchUp/Layout/Grid.rb', line 64

def minor_divisions
end

#print?Boolean

The #print? method returns whether or not the Layout::Grid is printed.

Examples:

doc = Layout::Document.open("C:/path/to/document.layout")
grid = doc.grid
print = grid.print?

Returns:

  • (Boolean)
  • (Boolean)

Version:

  • LayOut 2018



80
81
# File 'SketchUp/Layout/Grid.rb', line 80

def print?
end

#show?Boolean

The #show? method returns whether or not the Layout::Grid is visible.

Examples:

doc = Layout::Document.open("C:/path/to/document.layout")
grid = doc.grid
show = grid.show?

Returns:

  • (Boolean)
  • (Boolean)

Version:

  • LayOut 2018



96
97
# File 'SketchUp/Layout/Grid.rb', line 96

def show?
end

#show_major?Boolean

The #show_major? method returns whether or not the major grid lines are visible.

Examples:

doc = Layout::Document.open("C:/path/to/document.layout")
grid = doc.grid
show_major = grid.show_major?

Returns:

  • (Boolean)
  • (Boolean)

Version:

  • LayOut 2018



112
113
# File 'SketchUp/Layout/Grid.rb', line 112

def show_major?
end

#show_minor?Boolean

The #show_minor? method returns whether or not the minor grid lines are visible.

Examples:

doc = Layout::Document.open("C:/path/to/document.layout")
grid = doc.grid
show_minor = grid.show_minor?

Returns:

  • (Boolean)
  • (Boolean)

Version:

  • LayOut 2018



128
129
# File 'SketchUp/Layout/Grid.rb', line 128

def show_minor?
end