TAGGED: Ansys Discovery, scripting, Tips and Tricks
-
-
May 19, 2022 at 9:34 am
wdanek
SubscriberDear Discovery Team,
One of our customer have some problem/questions about Discovery Software. I was able to answer most of it but there are two which one I would like to send to you.
1. I tried to use discovery via remote desktop. There is a long delay in work especially: Pan, rotate, zoom.
The speed of operation ("SpaceClaim"- a separate program) is good even when the RemoteDesktop is active. The problem is in Discovery. How can I speed up the graphics? Can use two graphics cards help anyway?
I checked that also on our office work station and have exactly the same symptoms
2. Is it possible to use keyboard shortcuts, e.g. circle=alt+C; line=alt+L. Can I define such shortcuts by using API or Python? (Discovery, Workbench)
I would be grateful if you could answer these questions
Best Regards,
Wojciech Danek
-
May 19, 2022 at 10:55 am
Devendra Badgujar
Forum ModeratorHi WojtekD
Which version of Discovery are they trying to use?
For Remote desktop to work properly, they will also need the local device to meet the minimum hardware requirements as well along with the remote desktop.
Make sure your computer is using the main graphics card for Discovery. Sometimes especially with laptops, Windows might assign a low performance graphics setting to Discovery.
WojtekD said:
2. Is it possible to use keyboard shortcuts, e.g. circle=alt+C; line=alt+L. Can I define such shortcuts by using API or Python? (Discovery, Workbench)For this, I will check with the team and get back to you. Although, all SpaceClaim shortcuts work with Discovery too. Please check below documentation link for SpaceClaim shortcuts.
Keyboard shortcuts (ansys.com)Regards.
-
May 19, 2022 at 12:21 pm
wdanek
SubscriberHi @devendra_badgujar
Our customer use 2022R1 version and I on our workstation use 2021R2 version. Workstation in our office have only one graphic card, which met hardware requirements
Best Regards,
Wojciech
-
May 19, 2022 at 12:26 pm
Devendra Badgujar
Forum ModeratorHi WojtekD
Devendra Badgujar said:
Make sure your computer is using the main graphics card for Discovery. Sometimes especially with laptops, Windows might assign a low performance graphics setting to Discovery.Please can you check this.
Also make sure your graphics drivers are up to date. Make sure to go directly to the card manufacturer's website to check for the latest version.
-
May 23, 2022 at 7:45 am
Devendra Badgujar
Forum ModeratorHi WojtekD
We found a way to add single keypress shortcuts but not modified ones (using ctrl or alt combinations). It is as shown below:
There are two snippets. The first one is looking for commands in the tool based on a keyword. These will not always match what is displayed in the interface so this is trial and error.
Text
from SpaceClaim.Api.V22 import Command keyword = "fly" commands_found = [command.Name for command in Command.AllCommands if command.Name.ToLower().Contains(keyword)] print(commands_found)
The second part is running these commands to see if they start the tool the user wants and then reviewing the existing shortcuts and setting their own. We can ONLY set single keypress shortcuts. The general shortcuts are readonly in this manner.
Text
Command.Execute(commands_found[0]) my_cmd=Command.GetCommand(commands_found[0]) #see existing shortcuts. Not editable print(my_cmd.Shortcuts) #set a new single key shortcut my_cmd.ShortcutMnemonic="]"
Additionally this second script that sets the shortcut mnumonic is not a persistent setting so it has to be run each time the tool is launched. This can be done by storing all the command shortcut modifications in one script and running this script each time the tool is launched. You can modify the launch command on your shortcut with /RunScript="
" so that it runs this script each time the tool is launched. I am not sure if this can be done for launching Discovery from within Workbench though. Regards.
-
May 23, 2022 at 9:22 am
wdanek
SubscriberHi Devendra Badgujar ,
Thank you for your answer I think it will be very helpful.
Best Regards,
Wojciech
-
- The topic ‘Discovery on Remote Desktop works slow + Keywords shortcuts in Discovery’ is closed to new replies.

Boost 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.
- 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
-
8808
-
4658
-
3153
-
1680
-
1470
© 2023 Copyright ANSYS, Inc. All rights reserved.