Class: Sketchup::HatchPatterns
| Relationships | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Entity
|
|
|
Instance Chain:
self,
Enumerable,
Entity
|
|
| Inherits: |
Sketchup::Entity
|
Overview
An HatchPatterns object is a collection of HatchPattern objects.
It is used to manage the hatch patterns in a model.
An HatchPattern object represents an hatch pattern in the model.
Instance Attribute Summary
-
#selected_hatch_pattern ⇒ Sketchup::HatchPattern?
rw
The #selected_hatch_pattern method retrieves the currently selected
HatchPattern, mirroring the selection in the desktop::UI, ornilif none is selected. -
#selected_hatch_pattern=(pattern)
rw
The #selected_hatch_pattern= method sets the currently selected
HatchPattern, mirroring the selection in the desktop::UI.
Entity - Inherited
Instance Method Summary
-
#[](index) ⇒ Sketchup::HatchPattern?
The #[] method is used to retrieve an
HatchPatternby index or name. -
#add(name, path) ⇒ Sketchup::HatchPattern
The #add method adds an
HatchPatternto theHatchPatterns, loading it from a file. -
#each {|hatch_pattern| ... } ⇒ Sketchup::HatchPatterns
The #each method is used to iterate over all the patterns in the
HatchPatterns. -
#length
Alias for #size.
-
#purge_unused ⇒ Sketchup::HatchPatterns
The #purge_unused method is used to remove unused hatch patterns.
-
#remove(pattern) ⇒ Boolean
The #remove method removes an
HatchPatternfrom theHatchPatterns. -
#size ⇒ Integer
(also: #length)
The #size method retrieves the number of hatch patterns in the
HatchPatterns.
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 |
| #attribute_dictionary | The attribute_dictionary method is used to retrieve an attribute dictionary with a given name that is attached to an |
| #delete_attribute | The |
| #entityID | The entityID method is used to retrieve a unique ID assigned to an entity. |
| #get_attribute | The |
| #inspect | The |
| #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 |
| #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 |
| #typename | The typename method retrieves the type of the entity, which will be a string such as "Face", "Edge", or "Group". |
Instance Attribute Details
#selected_hatch_pattern ⇒ Sketchup::HatchPattern? (rw)
The #selected_hatch_pattern method retrieves the currently selected HatchPattern,
mirroring the selection in the desktop ::UI, or nil if none is selected.
#selected_hatch_pattern=(pattern) (rw)
The #selected_hatch_pattern= method sets the currently selected HatchPattern,
mirroring the selection in the desktop ::UI. Pass nil to clear the selection.
Instance Method Details
#[](index) ⇒ Sketchup::HatchPattern?
#[](name) ⇒ Sketchup::HatchPattern?
The #[] method is used to retrieve an HatchPattern by index or name.
#add(name, path) ⇒ Sketchup::HatchPattern
The #add method adds an HatchPattern to the HatchPatterns, loading it
from a file. The name must be non-empty and unique within the model.
#each {|hatch_pattern| ... } ⇒ HatchPatterns
The #each method is used to iterate over all the patterns in the
HatchPatterns.
#length
Alias for #size.
#purge_unused ⇒ HatchPatterns
The #purge_unused method is used to remove unused hatch patterns.
#remove(pattern) ⇒ Boolean
The #remove method removes an HatchPattern from the HatchPatterns.
#size ⇒ Integer
Also known as: #length
The #size method retrieves the number of hatch patterns in the
HatchPatterns.