Sketchup version: Sketchup Pro 2024 (24.0.594 and 24.0.484)
If parameter: selectionset_only is true, the time cost of exporting STL is very slow.
Is it a performance issue or bug?
Please refer to the following two cases:
Test data(Skp file): https://sjzn-cad-data.obs.cn-north-4.myhuaweicloud.com:443/temp/zhuz1x2.skp?AccessKeyId=L24EQS43POS4EMI9YD4Q&Expires=1747560854&Signature=qAOD7su20HrTHQ1tqSh/0ISeNxo%3D
- case1: (selectionset_only => true)
options_hash = {
:units => "m",
:format => 'binary',
:selectionset_only => true,
:swap_yz => true
}
puts "active_model"
model = Sketchup.active_model
status = model.export(file_path, options_hash)
start_time: 2025-04-18 16:42:14
active_model
after export
end_time: 2025-04-18 16:47:35
Elapsed time: 320.7343885 seconds
- case2: (selectionset_only => false)
options_hash = {
:units => "m",
:format => 'binary',
#:selectionset_only => true,
:swap_yz => true
}
puts "active_model"
model = Sketchup.active_model
status = model.export(file_path, options_hash)
start_time: 2025-04-18 16:56:03
active_model
after export
end_time: 2025-04-18 16:57:01
Elapsed time: 57.4743281 seconds