@unknownuser said:
I want to learn if instead of having a text inputbox you can also have a dropdown menu list with existing layers on it so you can select from there aswell.
Yes I have done that.. it is one one my files (somewhere)
just guessing it's similar to this:
def choose_layer(active=false)
model = Sketchup.active_model
layset = model.layers
deflay =( active ? model.active_layer.name ; layset.first.name )
laylist = layset.map(){|l| l.name }.join('|')
results = inputbox(["Layer ;...... "], [deflay], [laylist], " Choose Layer")
results ? layset[results.first] ; nil
end #