-
Notifications
You must be signed in to change notification settings - Fork 4
/
geores_tools_extension.rb
67 lines (47 loc) · 2.07 KB
/
geores_tools_extension.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Sketchup::require 'sketchup.rb'
Sketchup::require 'extensions.rb'
Sketchup::require 'geores_src/g_r_e_s_context_tools.rb'
#Register the Sandbox Tools with SU's extension manager
toolext1 = SketchupExtension.new "GEORES CityGML Import V2", "geores_src/geores_parser/citygml_import_main.rb"
toolext1.description="Adds a CityGML Importer to Sketchup"
toolext1.version="3.0.0"
toolext1.creator = "GEORES"
toolext1.copyright = "2017, GEORES"
#test nur CityGML 2.0
#Default on in pro and off in free
Sketchup.register_extension toolext1, true
wt_extensionk = SketchupExtension.new("GEORES CityGML Edit Dialog V2", "geores_src/geores_gui/gres_editdlg.rb")
wt_extensionk.description = "GEORES CityGML Objekt Dialog"
wt_extensionk.version = "3.0.0"
wt_extensionk.creator = "GEORES"
wt_extensionk.copyright = "2017, GEORES"
# Register the extension with Sketchup.
Sketchup.register_extension wt_extensionk, true
toolbar_ext = SketchupExtension.new("GEORES CityGML Toolbars V2", "geores_src/geores_toolbar/LayerGenerator.rb")
toolbar_ext.description = "GEORES CityGML Toolbars"
toolbar_ext.version = "3.0.0"
toolbar_ext.creator = "GEORES"
toolbar_ext.copyright = "2017, GEORES"
# Register the extension with Sketchup.
Sketchup.register_extension toolbar_ext, true
UI.add_context_menu_handler do |menu|
menu.add_item("GEORES CityGML Kopiere LoD") {
tools = GRES_ContextTools.new()
tools.copylod()
}
menu.add_item("GEORES CityGML Info") {
tools = GRES_ContextTools.new()
tools.info()
}
menu.add_item("GEORES CityGML Manuell zuweisen") {
tools = GRES_ContextTools.new()
tools.manual()
}
end
wt_exp_extension = SketchupExtension.new("GEORES CityGML Export V2", "geores_src/geores_export/gres_export_main.rb")
wt_exp_extension.description = "GEORES CityGML Export"
wt_exp_extension.version = "3.0.0"
wt_exp_extension.creator = "GEORES"
wt_exp_extension.copyright = "2017, GEORES"
# Register the extension with Sketchup.
Sketchup.register_extension wt_exp_extension, true