-
-
March 20, 2022 at 9:32 am
dcaneiro
SubscriberHello,
I need the user to put some geometrical data (not only points, which is well documented in the example files on spaceclaim), and for do that, i normally use tkinter libraries, but in the python version of spaceclaim, these libraries does not work correctly.
Is possible in any way to create an input dialog to make easy direct data recollection from users?
Thank you very much
Regards,
Daniel
March 22, 2022 at 5:20 amAniket
Ansys EmployeeSo do you want users to browse to and select a file?
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
March 22, 2022 at 6:12 amdcaneiro
Subscriberno, i do not.
I need to find a way, similar to "input box" in visual basic to retrieve information (int, double, strings...) from the user in a windows style, I think that the image should clarify this.
I could do this in python with the tkinter libraries, but they are not in the current version of python of spaceclaim (as far as I know).
Regards Daniel
March 23, 2022 at 3:13 pmAniket
Ansys EmployeeOk, if you desire to have user interaction with your code, wouldn't a wizard be useful?
Ansys Store Developer Resources
Please download the wizard example template from the link above and see if that would suit your need?
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
March 24, 2022 at 8:29 amdcaneiro
SubscriberYhank you very much for the fast answer Aniket, but i am looking for something more simple, more intuitive, a common input window, with no need of loading xml, do we have that option in this python version?
Regards
Daniel
March 24, 2022 at 3:06 pmAniket
Ansys Employee,have you tried using windows forms then? Try googling windows form with python and you will find a few examples like:
import clr
clr.AddReference('System.Windows.Forms')
from System.Windows.Forms import Application, Form
class HelloWorldForm(System.Windows.Forms.Form):
def __init__(self):
self.Text = 'Hello World'
self.Name = 'Hello World'
form = HelloWorldForm Application.Run(form)
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
´╗┐
Viewing 5 reply threads- You must be logged in to reply to this topic.
Ansys Innovation SpaceEarth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- How to work with STL file?
- Using Symmetry in DesignModeler and Expanding the Results
- Rotate tool in ANSYS Design Modeler
- drawing a geometry by importing a table of points
- section plane
- material properties
- ANSYS FLUENT – Operation would result in non manifold bodies
- Geometry scaling
- Parameters not imported into Workbench 18.2 from Solidworks/Inventor
- Convert Surface body to solid
Top Contributors-
2630
-
2104
-
1327
-
1110
-
461
Top Rated Tags© 2023 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-