🎉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

hypermesh tcl question for determine hypermesh file save?

User: "shiucomp5"
Altair Community Member
Updated by shiucomp5

hi all,

i am new for hypermesh tcl beginer.

i want to determine the hypermesh save?

this is my code,should i use [hm_info currentfile] correct?

======================================

set currentFilePath [hm_info currentfile]

if {$currentFilePath ne ""} {
     puts "The file has been saved."
     } else {
     tk_messageBox -title "Reminder" -message "Please remember to save the file!"
 }

======================================

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Ben Buchanan"
    Altair Employee
    Updated by Ben Buchanan

    There are probably other ways to do it too but your code seems to work.

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

    There are probably other ways to do it too but your code seems to work.

    hi,

    can you make some example?

    i want to learn some about useful example,thanks

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

    hi,

    can you make some example?

    i want to learn some about useful example,thanks

    Actually the more I think about it the more this seems covered by the core functionality. If you try and close a file without saving it will prompt you to save it. What case are you seeing where this doesn't happen?