Class: Sketchup::Entities

Inherits:
Object show all
Includes:
Enumerable
Defined in:
lib/entities.rb

Instance Method Summary collapse

Methods included from Enumerable

#all?, #any?, #chunk, #collect, #collect_concat, #cycle, #detect, #drop, #drop_while, #each_cons, #each_entry, #each_slice, #each_with_index, #each_with_object, #entries, #find, #find_all, #find_index, #first, #flat_map, #grep, #group_by, #inject, #lazy, #map, #max, #max_by, #member?, #min, #min_by, #minmax, #minmax_by, #none?, #one?, #partition, #reduce, #reject, #reverse_each, #select, #slice_before, #sort, #sort_by, #take, #take_while, #to_a, #zip

Instance Method Details

#[](o) ⇒ Object



22
23
# File 'lib/entities.rb', line 22

def [](o)
end

#active_section_planeSectionPlane

Returns:

Since:

  • SketchUp 2014



35
36
# File 'lib/entities.rb', line 35

def active_section_plane
end

#active_section_plane=Object

Since:

  • SketchUp 2014



39
40
# File 'lib/entities.rb', line 39

def active_section_plane=
end

#add_3d_textObject



60
61
# File 'lib/entities.rb', line 60

def add_3d_text
end

#add_arc(center, xaxis, normal, radius, start_angle, end_angle, segments = 12) ⇒ Object



62
63
64
65
# File 'lib/entities.rb', line 62

def add_arc(center, xaxis, normal, radius, start_angle, end_angle, segments = 12)
  arc = SketchUp::ArcCurve.new(center, xaxis, normal, radius, start_angele, end_angle, segments)
  return(arc)
end

#add_circleObject



66
67
# File 'lib/entities.rb', line 66

def add_circle
end

#add_clineObject



68
69
# File 'lib/entities.rb', line 68

def add_cline
end

#add_cpoint(pt) ⇒ Object



71
72
73
74
75
# File 'lib/entities.rb', line 71

def add_cpoint(pt)
  pt = Sketchup::ConstructionPoint.new(pt)
  @list.push(pt)
  return(pt)
end

#add_curveObject



77
78
# File 'lib/entities.rb', line 77

def add_curve
end

#add_dimension_linearObject

Since:

  • SketchUp 2014



43
44
# File 'lib/entities.rb', line 43

def add_dimension_linear
end

#add_dimension_radialObject

Since:

  • SketchUp 2014



47
48
# File 'lib/entities.rb', line 47

def add_dimension_radial
end

#add_edges(*args) ⇒ Array<Sketchup::Edge>

Accepts list of Point3ds or Array of Point3ds

Parameters:

Returns:



86
87
88
89
90
91
92
93
94
95
# File 'lib/entities.rb', line 86

def add_edges(*args)
  edges = []
  len = args.length
  (len-1).times {|i| 
    edge = Edge.new(args[i], args[i+1])
    edges.push(edge)
  }
  @list.concat(edges)
  return(edges)
end

#add_faceObject



96
97
# File 'lib/entities.rb', line 96

def add_face
end

#add_faces_from_meshObject



98
99
# File 'lib/entities.rb', line 98

def add_faces_from_mesh
end

#add_groupObject



100
101
# File 'lib/entities.rb', line 100

def add_group
end

#add_imageObject



102
103
# File 'lib/entities.rb', line 102

def add_image
end

#add_instanceObject



104
105
# File 'lib/entities.rb', line 104

def add_instance
end

#add_line(pt1, pt2) ⇒ Sketchup::Edge

Adds an Edge to the Entities collection

Examples:

model = Sketchup.active_model
ents = model.entities
edge = ents.add_line(ORIGIN, [1, 1, 0])

Parameters:

Returns:



119
120
121
122
# File 'lib/entities.rb', line 119

def add_line(pt1, pt2)
  edges = add_edges(pt1, pt2)
  return(edges.first)
end

#add_ngonObject



124
125
# File 'lib/entities.rb', line 124

def add_ngon
end

#add_observerObject



126
127
# File 'lib/entities.rb', line 126

def add_observer
end

#add_section_planeObject

Since:

  • SketchUp 2014



51
52
# File 'lib/entities.rb', line 51

def add_section_plane
end

#add_textObject



128
129
# File 'lib/entities.rb', line 128

def add_text
end

#atObject



130
131
# File 'lib/entities.rb', line 130

def at
end

#clear!Object



132
133
# File 'lib/entities.rb', line 132

def clear!
end

#countObject

Since:

  • SketchUp 2014 @see Enumberable#count



136
137
# File 'lib/entities.rb', line 136

def count
end

#eachObject



139
140
# File 'lib/entities.rb', line 139

def each
end

#erase_entitiesObject



141
142
# File 'lib/entities.rb', line 141

def erase_entities
end

#fill_from_meshObject



143
144
# File 'lib/entities.rb', line 143

def fill_from_mesh
end

#intersect_withObject



145
146
# File 'lib/entities.rb', line 145

def intersect_with
end

#lengthObject



147
148
# File 'lib/entities.rb', line 147

def length
end

#modelObject



150
151
152
# File 'lib/entities.rb', line 150

def model
  @model
end

#parentObject



153
154
# File 'lib/entities.rb', line 153

def parent
end

#remove_observerObject



155
156
# File 'lib/entities.rb', line 155

def remove_observer
end

#sizeObject

alias_method :size, :length

See Also:

Since:

  • SketchUp 2014



57
58
# File 'lib/entities.rb', line 57

def size
end

#transform_by_vectorsObject



157
158
# File 'lib/entities.rb', line 157

def transform_by_vectors
end

#transform_entitiesObject



159
160
# File 'lib/entities.rb', line 159

def transform_entities
end