Clean all variables in HyperMesh

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hi,

I am trying my macros on the command window in HyperMesh.
Is there any function to clean all variables ?

I tryied historyclear but it doesn't work.

 

Thanks.

Regards,

Cya.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hello,

    yes, there is

    but some variables is essential for hm running, if you clear them means hm will be malfunctional

    try:

    foreach var [info vars *] {catch {unset $var}}

     

    so you should put your variables in your own namespace so you can clean it properly

    foreach yourvar [info vars ::yournamespace::*] {catch {unset $yourvar}}

    or just delete your namespace, the vars will be freed from interp