sketchup ruby开发1

# You do something like this in the initialization routine of your extension.
version_required = 18
if (Sketchup.version.to_f < version_required)
  UI.messagebox("You must have Sketchup 20#{version_required} to run this "\
                "extension. Visit sketchup.com to upgrade.")
  return
end

检查草图大师版本以确保用户能够运行脚本

猜你喜欢

转载自blog.csdn.net/qq_28510897/article/details/82226329