🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to create a new tcl/tk environment

User: "ThomasCook"
Altair Community Member
Updated by ThomasCook

We know that if we want to create a new model, we just need to click File-- new-- model, so how to create a new tcl/tk environment.

In other word, how do I clear  all the variables, function, handles and so on that I've defined in the command window.

thanks.


Best wishes.

Find more posts tagged with

Sort by:
1 - 7 of 71
    User: "Jason_Craanen"
    Altair Employee
    Updated by Jason_Craanen

    Hello,

    You can Clear the window by a right-mouse-button click

    image

    User: "Ben Buchanan"
    Altair Employee
    Updated by Ben Buchanan

    Opening a new session of HyperMesh guarantees all the variables etc. are clear.

    Otherwise working in a namespace makes this easier as you can delete the whole namespace.

    image

    User: "ThomasCook"
    Altair Community Member
    OP
    Updated by ThomasCook

    Opening a new session of HyperMesh guarantees all the variables etc. are clear.

    Otherwise working in a namespace makes this easier as you can delete the whole namespace.

    image

    Thanks for your reply, but the result I got is different from what you said.

    I open HyperMesh and enter <span style="color: #b96ad9;"><span style="color: #000000;">set var 1.2; puts $var</span></span> in command windows,

    Window Output 1.2

    then I click File---New---Session, and I continue to put $var in command windows

    Window Output 1.2

    image

    So opening a new Session does not empty the previous variables

    User: "ThomasCook"
    Altair Community Member
    OP
    Updated by ThomasCook

    Hello,

    You can Clear the window by a right-mouse-button click

    image

    Thanks, but this is not the method to clear all variables and handle etc..

    User: "Ben Buchanan"
    Altair Employee
    Updated by Ben Buchanan

    Thanks for your reply, but the result I got is different from what you said.

    I open HyperMesh and enter <span style="color: #b96ad9;"><span style="color: #000000;">set var 1.2; puts $var</span></span> in command windows,

    Window Output 1.2

    then I click File---New---Session, and I continue to put $var in command windows

    Window Output 1.2

    image

    So opening a new Session does not empty the previous variables

    Sorry, bad choice of words. What I meant is a new window.

    User: "ThomasCook"
    Altair Community Member
    OP
    Updated by ThomasCook

    Sorry, bad choice of words. What I meant is a new window.

    Anyway, thank you so much.

    User: "Ben Buchanan"
    Altair Employee
    Updated by Ben Buchanan

    Anyway, thank you so much.

    Using HWC is a good way of avoiding handles too.