Skip to content

Export piece by piece #255

@deedend

Description

@deedend

Hi,

I am having an issue with the export piece by piece with clipboard of the shop drawing controller, sometimes it crashes Cadwork, and on top of that, it doesn't show the progress or anything (like, for example, it does when you use the manual export - shop drawings - piece by piece - export command). I was wondering, would it be possible to have the same verbosity in that function (or an alternative version of the function with more visual output)? Also, fixing the crashes would be great

These are some errors that I get when I try to run the export SD from inside the script:

Image

Image

Image

and this is the code:

import utility_controller as uc
import shop_drawing_controller as sd
import cadwork

active_elements = ec.get_active_identifiable_element_ids()

clipb = int(uc.get_user_string('Choose the clipboard number'))
sd.export_piece_by_piece_with_clipboard(clipb, active_elements)
uc.print_error(f'Panels exported on clipboard {clipb}')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions