- Code: Select all
mod = Sketchup.active_model
ents = mod.active_entities
sel = mod.selection
face = sel.grep(Sketchup::Face)[0]
locations=[@pt1,@pt2,@pt3,@pt4]
locations.each{|loc| @pt1=loc
ents.add_circle(@pt1, @vec3, @dia, 24)
What code do I need to apply a single color to each circle?
I'm looking at http://ruby.sketchup.com/Sketchup/Color.html for inspiration,
but I'm not able to make the code work!

- Code: Select all
color=Sketchup::Color.new(163,204,204)
TIA!