CQ-editor icon indicating copy to clipboard operation
CQ-editor copied to clipboard

'Tools → Export as STEP' fails

Open chendy opened this issue 4 years ago • 2 comments

I used the Assembly Tutorial, which I got to load after downloading 'vslot-2020_1.dxf' following a link from a related GitHub Issue.

Version: 0.3.0dev.

'Log viewer' reports:

[2021-04-14 16:55:01.679632] ERROR: CQ-Editor: Uncaught exception occurred
Traceback (most recent call last):
  File "C:\Users\user\Anaconda3\lib\site-packages\cq_editor\widgets\object_tree.py", line 142, in <lambda>
    self.export('step'))
  File "C:\Users\user\Anaconda3\lib\site-packages\cq_editor\widgets\object_tree.py", line 332, in export
    export(shapes,export_type,fname,precision)
  File "C:\Users\user\Anaconda3\lib\site-packages\cq_editor\cq_utils.py", line 76, in export
    comp = to_compound(obj)
  File "C:\Users\user\Anaconda3\lib\site-packages\cq_editor\cq_utils.py", line 37, in to_compound
    raise ValueError(f'Invalid type {type(obj)}')
ValueError: Invalid type <class 'list'>

chendy avatar Apr 14 '21 17:04 chendy

Thanks for pointing this out - need to improve assy support in CQ-editor. For now you'll need to export from code I'm afraid.

adam-urbanczyk avatar Apr 14 '21 17:04 adam-urbanczyk

No problem. And thanks soo much to all the CQ developers. Its an amazing project.

chendy avatar Apr 14 '21 17:04 chendy