lairdubois / lairdubois-opencutlist-sketchup-extension

OpenCutList is a SketchUp Extension for automating the generation of cut lists for woodworking projects.
https://extensions.sketchup.com/extension/00f0bf69-7a42-4295-9e1c-226080814e3e/opencutlist
GNU General Public License v3.0
426 stars 55 forks source link

Error when cutting #633

Closed DamirGatin closed 6 months ago

DamirGatin commented 6 months ago

[clippy.rb:180] : can't load C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/lib/clippy/../../../bin/x86/lib/Clippy.dll Error:

<NameError: undefined local variable or method `c_clear_subjects' for Ladb::OpenCutList::Clippy:Module>

C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/lib/clippy/clippy.rb:280:in _clear' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/lib/clippy/clippy.rb:30:inexecute_difference' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/common/common_drawing_projection_worker.rb:131:in block (2 levels) in run' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/common/common_drawing_projection_worker.rb:129:ineach' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/common/common_drawing_projection_worker.rb:129:in block in run' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/common/common_drawing_projection_worker.rb:127:ineach' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/common/common_drawing_projection_worker.rb:127:in each_with_index' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/common/common_drawing_projection_worker.rb:127:inrun' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/helper/part_drawing_helper.rb:65:in _compute_part_projection_def' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/cutlist/cutlist_cuttingdiagram2d_worker.rb:293:inblock (2 levels) in run' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/cutlist/cutlist_cuttingdiagram2d_worker.rb:269:in each' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/cutlist/cutlist_cuttingdiagram2d_worker.rb:269:inblock in run' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/cutlist/cutlist_cuttingdiagram2d_worker.rb:243:in each' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/worker/cutlist/cutlist_cuttingdiagram2d_worker.rb:243:inrun' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/controller/cutlist_controller.rb:288:in group_cuttingdiagram2d_advance_command' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/controller/cutlist_controller.rb:84:inblock in setup_commands' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/plugin.rb:726:in execute_command' C:/Users/Димарик/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/ladb_opencutlist/ruby/plugin.rb:1070:inblock in create_tabs_dialog'

DamirGatin commented 6 months ago

What could be causing this?

mobilarte commented 6 months ago

It is a problem caused by the loading of the DLL Clippy.dll when the path of the user contains non-ascii characters. We are working on a fix, but it seems very tedious to fix it for both windows and mac.

bbeaulant commented 6 months ago

@DamirGatin , currently the workaround is to Hide Shape of Parts in Cutting diagram settings to avoid this error.

bbeaulant commented 6 months ago

Hi, This error is fixed in the last 6.1.0 release.