Method: Layout::Group#scale_units

Defined in:
lib/sketchup-api-stubs/stubs/Layout/Group.rb

#scale_unitsInteger

The #scale_units method returns the units format used in the scale for the Layout::Group.

The units format can be any of the following values:

Layout::Document::FRACTIONAL_INCHES
Layout::Document::DECIMAL_INCHES
Layout::Document::DECIMAL_FEET
Layout::Document::DECIMAL_MILLIMETERS
Layout::Document::DECIMAL_CENTIMETERS
Layout::Document::DECIMAL_METERS
Layout::Document::DECIMAL_POINTS

Examples:

doc = Layout::Document.open("C:/path/to/document.layout")
group = doc.shared_entities.first
units = group.scale_units

Returns:

  • (Integer)

    units The units format of the scale factor

Raises:

  • (ArgumentError)

    if the Layout::Group does not have a scale factor

Version:

  • LayOut 2018



166
167
# File 'lib/sketchup-api-stubs/stubs/Layout/Group.rb', line 166

def scale_units
end