Skip to content

Question re: drawing addon - correct way to clear view/scene/backend? #947

Answered by mozman
bandtank asked this question in Q&A
Discussion options

You must be logged in to vote

You can follow the qtviewer.py example. Start at the CADWidget.set_document() method.

def set_document(

The viewer creates a new backend for each new loaded DXF document. This seems to be the safest way to do it.

The CADWidget.draw_layout() method draws another layout of the same DXF document without creating a new backend, which also seems to work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bandtank
Comment options

Answer selected by bandtank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #946 on October 29, 2023 05:33.