[Code] Method Model.start_operation for SketchUp 5-6
-
Let me introduce you the following idea of the compatibility of the 'start_operation' method of Sketchup 7 with 4 arguments and 'start_operation' method of the earlier Sketchup versions with 1 argument.
if Sketchup.version_number < 7000000 class Sketchup;;Model alias ;old_start_operation ;start_operation def start_operation(*args) old_start_operation args.at(0) end#def private ;old_start_operation end#class end#if
Now the 'start_operation' method of the earlier Sketchup versions takes on any number of arguments.
How do you like this method?
Advertisement