Class: Sketchup::ComponentDefinition

Inherits:
Drawingelement show all
Includes:
Comparable
Defined in:
lib/componentdefinition.rb

Instance Method Summary collapse

Methods included from Comparable

#between?

Methods inherited from Drawingelement

#bounds, #casts_shadows=, #casts_shadows?, #erase!, #hidden=, #layer, #layer=, #material, #material=, #receives_shadows=, #receives_shadows?, #visible=, #visible?

Methods inherited from Entity

#attribute_dictionaries, #attribute_dictionary, #delete_attribute, #deleted?, #entityID, #get_attribute, #model, #parent, #set_attribute, #to_s, #typename, #valid?

Instance Method Details

#<=>Object



4
5
# File 'lib/componentdefinition.rb', line 4

def <=>
end

#==Object



6
7
# File 'lib/componentdefinition.rb', line 6

def ==
end

#add_classificationObject



9
10
# File 'lib/componentdefinition.rb', line 9

def add_classification
end

#add_observerObject



12
13
# File 'lib/componentdefinition.rb', line 12

def add_observer
end

#behaviorObject



14
15
# File 'lib/componentdefinition.rb', line 14

def behavior
end

#count_instancesObject



16
17
# File 'lib/componentdefinition.rb', line 16

def count_instances
end

#count_used_instancesFixnum

The count_used_instances method is used to count the total number of component instances in a model using this component definition. This method takes into account the full hierarchy of the model.

Returns:

  • (Fixnum)

    the number of instances

Since:

  • SketchUp 2016



25
26
27
28
# File 'lib/componentdefinition.rb', line 25

def count_used_instances
   count = 0
   return count
end

#descriptionObject



30
31
# File 'lib/componentdefinition.rb', line 30

def description
end

#description=Object



32
33
# File 'lib/componentdefinition.rb', line 32

def description=
end

#entitiesObject



34
35
# File 'lib/componentdefinition.rb', line 34

def entities
end

#get_classification_valueObject



37
38
# File 'lib/componentdefinition.rb', line 37

def get_classification_value
end

#group?Boolean

Returns:

  • (Boolean)


40
41
# File 'lib/componentdefinition.rb', line 40

def group?
end

#guidObject



42
43
# File 'lib/componentdefinition.rb', line 42

def guid
end

#hidden?Boolean

Returns:

  • (Boolean)


44
45
# File 'lib/componentdefinition.rb', line 44

def hidden?
end

#image?Boolean

Returns:

  • (Boolean)


46
47
# File 'lib/componentdefinition.rb', line 46

def image?
end

#insertion_pointObject



48
49
# File 'lib/componentdefinition.rb', line 48

def insertion_point
end

#insertion_point=Object



50
51
# File 'lib/componentdefinition.rb', line 50

def insertion_point=
end

#instancesObject



52
53
# File 'lib/componentdefinition.rb', line 52

def instances
end

#internal?Boolean

Returns:

  • (Boolean)


54
55
# File 'lib/componentdefinition.rb', line 54

def internal?
end

#invalidate_boundsObject



56
57
# File 'lib/componentdefinition.rb', line 56

def invalidate_bounds
end

#nameObject



58
59
# File 'lib/componentdefinition.rb', line 58

def name
end

#name=Object



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

def name=
end

#pathObject



62
63
# File 'lib/componentdefinition.rb', line 62

def path
end

#refresh_thumbnailObject



64
65
# File 'lib/componentdefinition.rb', line 64

def refresh_thumbnail
end

#remove_classificationObject



67
68
# File 'lib/componentdefinition.rb', line 67

def remove_classification
end

#remove_observerObject



70
71
# File 'lib/componentdefinition.rb', line 70

def remove_observer
end

#save_asObject



72
73
# File 'lib/componentdefinition.rb', line 72

def save_as
end

#save_thumbnailObject



74
75
# File 'lib/componentdefinition.rb', line 74

def save_thumbnail
end

#set_classification_valueObject



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

def set_classification_value
end