hexagon logo

Simple input in python script

Hello everyone, i am learning python, and trying simple programs using python in Adams.
My problem is how to ask for input string:
 
Something like:
name=input()
 
is giving error such:
 
File "<string>", line 1, in <module>
EOFError: EOF when reading a line
 
or macros in adams python should be just script without input?
 
Jozef
Parents
  • I don't understand the intention of entering values in a shell inside ADAMS and from my point of view it's rather obsolete.
     
    The usual philosophy for user interaction is to write a dialog box that asks for values and supplies them to a macro. No tool asks you to enter values in a shell/command line.
    The only way to make ADAMS ask for manual entries in the command window ist to type a command there and use return before all mandatory options have been added. Then ADAMS is asking for them.
Reply
  • I don't understand the intention of entering values in a shell inside ADAMS and from my point of view it's rather obsolete.
     
    The usual philosophy for user interaction is to write a dialog box that asks for values and supplies them to a macro. No tool asks you to enter values in a shell/command line.
    The only way to make ADAMS ask for manual entries in the command window ist to type a command there and use return before all mandatory options have been added. Then ADAMS is asking for them.
Children
No Data