It seems importing an skp file as a component requires user interaction, namely to place it somewhere (Trimble?!?!).
Try this:
model = Sketchup.active_model file = "C;/skp_files/example.skp" Sketchup.open_file(file) model.export(file.sub(/\.skp$/, ".dae"))