🎉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

User input to Batchmesh criteria and parameter file using TCL/TK

User: "Pritish Avachat"
Altair Community Member
Updated by Pritish Avachat

Hello,

Below is the code to take input from user and store to variable $input

I want to run batchmesh script using this mesh size from user input.
Thank You for any help in this regard

 

set input [hwtk::inputdialog -text 'Enter Average Mesh Size' -inputtype str \
    -x [winfo rootx .] -y [winfo rooty .]]


Also, Can we modify above code to ensure that user inputs only numbers and not text.

Thank You !
Pritish

Find more posts tagged with