Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
π£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
[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#ifNow the 'start_operation' method of the earlier Sketchup versions takes on any number of arguments.
How do you like this method?

Advertisement