3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

Discovery on Remote Desktop works slow + Keywords shortcuts in Discovery

    • wdanek
      Subscriber

      Dear 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

    • Devendra Badgujar
      Forum Moderator

      Hi 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.

    • wdanek
      Subscriber

      Hi @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

    • Devendra Badgujar
      Forum Moderator

      Hi 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.

    • Devendra Badgujar
      Forum Moderator

      Hi 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.

    • wdanek
      Subscriber

      Hi Devendra Badgujar ,

      Thank you for your answer I think it will be very helpful. 

       

      Best Regards,

      Wojciech

Viewing 5 reply threads
  • The topic ‘Discovery on Remote Desktop works slow + Keywords shortcuts in Discovery’ is closed to new replies.