-
-
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
Forum ModeratorSo 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
Forum ModeratorOk, 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
Forum Moderator,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- The topic ‘How to retrieve data from user in spaceclaim using python?’ is closed to new replies.
Ansys Innovation SpaceBoost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth 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- pcb
- No longer possible to import f3d with 2023?
- line bodies and surface body shared topology
- How to chang unit in Ansys Discovery 2023?
- ANSYSLI Exited or could not read server port ANSYSLI_FNE_PORT
- SpaceClaim Script: Selection by FilterByBoundingBox
- Assignment of revolute joint
- Max/min over time results in AIM
- Axisymmetric model – Rubber seal
- To change language in Ansys Discovery
Top Contributors-
8808
-
4658
-
3155
-
1688
-
1478
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.
-