Skip to content

Saved variables after ending script #267

@adrimg89

Description

@adrimg89

Hi,

I’m quite surprised by this issue. I had never noticed it until now, and I’m not sure whether it has happened before or if it’s a new problem.

I’ve noticed that Cadwork retains variables after a script ends, even after closing all IDLE prompt windows.

Is this normal behavior?

I think this can be quite dangerous. For example, when you get selected IDs, you might not have selected any items — but if your variable already contained elements from a previous script execution, printing the variable will still show those old values.

How can I avoid this?

Thank you very much in advance.

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