Class: DFC::SketchupUtil
Overview
Sketchup相关工具
Class Method Summary # collapse
-
.activate ⇒ Boolean
Set main window active.
-
.find_window_by_caption(caption, full_match = true, case_sensitive = true) ⇒ Fixnum?
Find handle to a window with a specific caption.
-
.get_dialogs ⇒ Array<Fixnum>
Get all pop-up windows of the current SketchUp application.
-
.get_main_window ⇒ Object
获取当前Sketchup主窗口句柄.
-
.get_other_main_windows ⇒ Array<Fixnum>
Get handles to all SketchUp main windows, except for the current one.
-
.get_viewport ⇒ Fixnum
Get handle to the view window of the main window.
-
.get_viewport_center ⇒ Array<Fixnum>
Get viewport center in screen coordinates.
-
.get_viewport_origin ⇒ Array<Fixnum>
Get upper-left corner of the view window in screen coordinates.
-
.get_viewport_rect ⇒ Array<Fixnum>
Get upper-left and lower-right corners of the view window in screen coordinates, relative to the upper-left corner of the screen.
-
.get_viewport_size ⇒ Array<Fixnum>
Get width and height of the view window in pixels.
-
.ignore_toolbar(handle) ⇒ Boolean
Elude toolbar from the SketchupUtil.show_toolbars operations.
-
.load_save(path, save_path, version = 8) ⇒ Fixnum
文件任意版本另存 -1 参数个数错误 -2 标志位错误 -3 版本错误 -4 DFC用户目录出错 >0 SUAPI调用错误.
-
.set_menu_bar(state) ⇒ Boolean
Set/Remove menu bar.
-
.set_viewport_border(state) ⇒ Boolean
Set/Remove viewport border, a thin edge surrounding the view.
-
.show_scenes_bar(state, refresh = true) ⇒ Boolean
Show/hide scenes bar.
-
.show_status_bar(state, refresh = true) ⇒ Boolean
Show/hide status bar.
-
.show_toolbar_container(bar, state, refresh = true) ⇒ Boolean
Show/hide toolbar container(s).
-
.show_toolbars(state) ⇒ Fixnum
Show/hide all floating toolbars.
-
.switch_full_screen(state, reset_mode = 2, set_mode = 1) ⇒ Boolean
Switch main window full screen.
-
.version_change(path, version = 8) ⇒ Fixnum
文件任意版本保存 -1 参数个数错误 -2 标志位错误 -3 版本错误 -4 DFC用户目录出错 >0 SUAPI调用错误.
Class Method Details
↑ .activate ⇒ Boolean
Set main window active.
↑ .find_window_by_caption(caption, full_match = true, case_sensitive = true) ⇒ Fixnum?
This function will iterate through windows belonging to the current SketchUp process only. All windows belonging to a different process or a different SketchUp application will not be searched.
Find handle to a window with a specific caption.
↑ .get_dialogs ⇒ Array<Fixnum>
Ignored dialogs are not included in this list.
Get all pop-up windows of the current SketchUp application.
↑ .get_other_main_windows ⇒ Array<Fixnum>
Get handles to all SketchUp main windows, except for the current one.
↑ .get_viewport ⇒ Fixnum
Get handle to the view window of the main window.
↑ .get_viewport_center ⇒ Array<Fixnum>
Get viewport center in screen coordinates.
↑ .get_viewport_origin ⇒ Array<Fixnum>
Get upper-left corner of the view window in screen coordinates.
↑ .get_viewport_rect ⇒ Array<Fixnum>
Get upper-left and lower-right corners of the view window in screen coordinates, relative to the upper-left corner of the screen.
↑ .get_viewport_size ⇒ Array<Fixnum>
This is same as view.vp_width and view.vp_height.
Get width and height of the view window in pixels.
↑ .ignore_toolbar(handle) ⇒ Boolean
Elude toolbar from the show_toolbars operations.
↑ .load_save(path, save_path, version = 8) ⇒ Fixnum
文件任意版本另存-1 参数个数错误-2 标志位错误-3 版本错误-4 DFC用户目录出错>0 SUAPI调用错误
↑ .set_menu_bar(state) ⇒ Boolean
Set/Remove menu bar.
↑ .set_viewport_border(state) ⇒ Boolean
Set/Remove viewport border, a thin edge surrounding the view.
↑ .show_scenes_bar(state, refresh = true) ⇒ Boolean
Show/hide scenes bar.
↑ .show_status_bar(state, refresh = true) ⇒ Boolean
Show/hide status bar.
↑ .show_toolbar_container(bar, state, refresh = true) ⇒ Boolean
Show/hide toolbar container(s).
↑ .show_toolbars(state) ⇒ Fixnum
Show/hide all floating toolbars.
↑ .switch_full_screen(state, reset_mode = 2, set_mode = 1) ⇒ Boolean
Switch main window full screen.
↑ .version_change(path, version = 8) ⇒ Fixnum
文件任意版本保存-1 参数个数错误-2 标志位错误-3 版本错误-4 DFC用户目录出错>0 SUAPI调用错误