123456789_123456789_123456789_123456789_123456789_

Class: Sketchup::DimensionRadial

Relationships
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Sketchup::Dimension

Overview

The DimensionRadial class represents radius and diameter dimensions on arcs and circles.

Version:

  • SketchUp 2014

Constant Summary

Dimension - Inherited

ARROW_CLOSED, ARROW_DOT, ARROW_NONE, ARROW_OPEN, ARROW_SLASH

Instance Attribute Summary

Dimension - Inherited

#arrow_type

The arrow_type method retrieves the current arrow type of the dimension.

#arrow_type=

The arrow_type= method sets the arrow type of the dimension.

#has_aligned_text=

The has_aligned_text= method accepts true or false indicating whether the dimension’s text is aligned to the dimension or to the screen.

#has_aligned_text?

The has_aligned_text method is used to determine whether the dimension’s text is aligned to the dimension or to the screen.

#text

The text method is used to retrieve the dimension text.

#text=

The text= method is used to set an override on the dimension text.

Drawingelement - Inherited

#casts_shadows=

The casts_shadows= method is used to set the Drawingelement to cast shadows.

#casts_shadows?

The casts_shadows? method is used to determine if the Drawingelement is casting shadows.

#hidden=

The hidden= method is used to set the hidden status for an element.

#hidden?

The hidden? method is used to determine if the element is hidden.

#layer

The layer method is used to retrieve the Layer object of the drawing element.

#layer=

The layer= method is used to set the layer for the drawing element.

#material

The material method is used to retrieve the material for the drawing element.

#material=

The material= method is used to set the material for the drawing element.

#receives_shadows=

The receive_shadows= method is used to set the Drawingelement to receive shadows.

#receives_shadows?

The receive_shadows? method is used to determine if the Drawingelement is receiving shadows.

#visible=

The visible= method is used to set the visible status for an element.

#visible?

The visible? method is used to get the visible status for an element.

Entity - Inherited

#deleted?

The deleted? method is used to determine if your entity is still valid (not deleted by another script, for example.).

#valid?

The #valid? method is used to determine if your entity is still valid (not deleted by another script, for example).

Instance Method Summary

  • #leader_points ⇒ Object

    The leader_points method returns the 3 significant points along the dimension line in world coordinates.

Dimension - Inherited

#add_observer

The add_observer method is used to add a DimensionObserver to the dimension.

#plane

The plane method is used to retrieve the plane of the dimension.

#remove_observer

The remove_observer method is used to remove a DimensionObserver from the dimension.

Drawingelement - Inherited

#bounds

The #bounds method is used to retrieve the ::Geom::BoundingBox bounding a Drawingelement.

#erase!

The #erase! method is used to erase an element from the model.

Entity - Inherited

#add_observer

The add_observer method is used to add an observer to the current object.

#attribute_dictionaries

The attribute_dictionaries method is used to retrieve the AttributeDictionaries collection attached to the entity.

#attribute_dictionary

The attribute_dictionary method is used to retrieve an attribute dictionary with a given name that is attached to an Entity.

#delete_attribute

The #delete_attribute method is used to delete an attribute from an entity.

#entityID

The entityID method is used to retrieve a unique ID assigned to an entity.

#get_attribute

The #get_attribute method is used to retrieve the value of an attribute in the entity’s attribute dictionary.

#inspect

The #inspect method is used to retrieve the string representation of the entity.

#model

The model method is used to retrieve the model for the entity.

#parent

The parent method is used to retrieve the parent of the entity.

#persistent_id

The #persistent_id method is used to retrieve a unique persistent id assigned to an entity.

#remove_observer

The remove_observer method is used to remove an observer from the current object.

#set_attribute

The set attribute is used to set the value of an attribute in an attribute dictionary with the given name.

#to_s

The #to_s method is used to retrieve the string representation of the entity.

#typename

The typename method retrieves the type of the entity, which will be a string such as “Face”, “Edge”, or “Group”.

Instance Attribute Details

#arc_curveObject (rw)

The arc_curve method returns the ArcCurve object to which this dimension is attached.

Examples:

arc = dim.arc_curve

Returns:

  • The ArcCurve object to which the dimension is attached.

Version:

  • SketchUp 2014

#arc_curve=(arc_curve) ⇒ Object (rw)

The arc_curve= method is used to set the ArcCurve object to which this dimension is attached.

Examples:

dim.arc_curve = arc

Parameters:

  • arc_curve

    The ArcCurve object to which the dimension is to be attached.

Returns:

  • The ArcCurve object to which the dimension was attached.

Version:

  • SketchUp 2014

#leader_break_pointObject (rw)

The leader_break_point method returns the break point on the leader where the dimension text is attached.

Examples:

pt = dim.leader_break_point
puts "Break point is #{pt}"

Returns:

  • the leader break point

Version:

  • SketchUp 2014

#leader_break_point=(point) ⇒ Object (rw)

The leader_break_point= method is used to set the break point on the leader where the dimension text is attached.

Examples:

dim.leader_break_point = [10, 0, 0]

Parameters:

  • point

    the point to be set

Returns:

  • the point that was set

Version:

  • SketchUp 2014

Instance Method Details

#leader_pointsObject

The leader_points method returns the 3 significant points along the dimension line in world coordinates.

Examples:

pts = dim.leader_points
puts "Break point is #{pts[0]}"
puts "Attach point is #{pts[1]}"
puts "Opposite point is #{pts[2]}"

Returns:

  • ::Array of 3 Point3d objects. Point 0: leader break point, where the text extension attaches. Point 1: attach point, where leader touches the arc/circle. Point 2: opposite point, where the diameter leader touches the circle on the opposite side.

Version:

  • SketchUp 2014