92613a37cd
Setup _tools for developer environment Remove unnecassary lines on loader
50 lines
1.5 KiB
Ruby
50 lines
1.5 KiB
Ruby
# Copyright 2014-2021, Trimble Inc.
|
|
#
|
|
# License: The MIT License (MIT)
|
|
#
|
|
# A SketchUp Ruby Extension that surfaces attributes attached to components.
|
|
# More info at https://github.com/SketchUp/sketchup-attribute-helper
|
|
|
|
|
|
require 'sketchup.rb'
|
|
require 'extensions.rb'
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
module Trimble
|
|
module AttributeHelper
|
|
|
|
### CONSTANTS ### ------------------------------------------------------------
|
|
|
|
# Plugin information
|
|
PLUGIN_ID = 'AttributeHelper'.freeze
|
|
PLUGIN_NAME = 'SketchUp Attribute Helper'.freeze
|
|
PLUGIN_VERSION = '1.0.3'.freeze
|
|
|
|
# Resource paths
|
|
FILENAMESPACE = File.basename(__FILE__, '.*')
|
|
PATH_ROOT = File.dirname(__FILE__).freeze
|
|
PATH = File.join(PATH_ROOT, FILENAMESPACE).freeze
|
|
|
|
|
|
### EXTENSION ### ------------------------------------------------------------
|
|
|
|
unless file_loaded?(__FILE__)
|
|
loader = File.join( PATH, 'core.rb' )
|
|
ex = SketchupExtension.new(PLUGIN_NAME, loader)
|
|
ex.description = 'Visually inspect nested attributes in SketchUp.'
|
|
ex.version = PLUGIN_VERSION
|
|
ex.copyright = 'Trimble Inc © 2015-2021'
|
|
ex.creator = 'SketchUp'
|
|
Sketchup.register_extension(ex, true)
|
|
end
|
|
|
|
end # module AttributeHelper
|
|
end # module Trimble
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
file_loaded(__FILE__)
|
|
|
|
#-------------------------------------------------------------------------------
|