The RenderingOptions class contains method to extract the rendering
information for a model. The majority of the rendering information returned
exists in the Model Info > Display section of SketchUp. The following
rendering information keys are maintained in SketchUp:
The set value [] method is used to get the value in the array of rendering options.
Arguments:
Returns:
model = Sketchup.active_model renderingoptions = model.rendering_options value = renderingoptions["DisplayInstanceAxes"] UI.messagebox value
The set value []= method is used to set the value in the array of rendering options.
Arguments:
Returns:
model = Sketchup.active_model renderingoptions = model.rendering_options value = renderingoptions["DisplayInstanceAxes"] UI.messagebox value value = renderingoptions["DisplayInstanceAxes"] = true UI.messagebox value
The add_observer method is used to add an observer to the current object.
Arguments:
Returns:
status = object.add_observer observer
The each method iterates through all of the rendering options key/value pairs.
Arguments:
Returns:
model = Sketchup.active_modelrenderingoptions = model.rendering_options
renderingoptions.each { | key, value | UI.messagebox key }
renderingoptions.each { | key, value | UI.messagebox value }The each_key method iterates through all of the rendering options keys.
Arguments:
Returns:
renderingoptions.each_key { | key |
UI.messagebox key
}An alias for each. See RenderingOptions.each.
Returns:
# Need example ruby code here.
The keys method returns an array with all of the attribute keys.
Returns:
model = Sketchup.active_model renderingoptions = model.rendering_options keys = renderingoptions.keys key = keys[0] UI.messagebox key
The remove_observer method is used to remove an observer from the current object.
Arguments:
Returns:
status = object.remove_observer observer