Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little bug in ezdxf/explode.py #748

Closed
IvanKachaikinCendas opened this issue Sep 29, 2022 · 0 comments
Closed

A little bug in ezdxf/explode.py #748

IvanKachaikinCendas opened this issue Sep 29, 2022 · 0 comments

Comments

@IvanKachaikinCendas
Copy link

IvanKachaikinCendas commented Sep 29, 2022

In ezdxf/explode.py, line 247, the function virtual_block_reference_entities is called in an incorrect way that throws an exception if ever ezdxf goes there.

More specifically, the function definition is:

def virtual_block_reference_entities(
    block_ref: "Insert",
    *,
    skipped_entity_callback: Optional[
        Callable[["DXFGraphic", str], None]
    ] = None,
    redraw_order=False,
) -> Iterable["DXFGraphic"]:
  pass

But the call is something like virtual_block_reference_entities(entity, skipped_entity_callback) that essentially throws an exception. For me the following call instead fixed the problem, and I think it should be the same at the point that I refer to:

virtual_block_reference_entities(entity, skipped_entity_callback=skipped_entity_callback)

Thanks in advance for taking this issue into account! :)

P.S.: sorry, cannot share with you the DXF to reproduce because it is private, thanks for your understanding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant