Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

Learning to script in SpaceClaim

TAGGED: ,

    • K Kramer
      Subscriber

      I'm trying to get into SpaceClaim scripting (not a professional programmer) and have a few questions:

      1. What are the differences between SpaceClaim and DesignModeler?
      2. Is there a comprehensive command reference other than the API documentation? Looking up commands in the API doc can be a bit tedious at times since they are spread across multiple categories and poorly documented, which means I basically have to learn the syntax by recording scripts.
      3. I noticed scripts can be saved as either *.py or *.scscript files. Is there any difference between them?
      4. Just out of interest: The Python scripts are directly processed by SpaceClaim, but afaik the API can also be used with C# (at least the syntax is in the doc). Does anyone know how a C# program would connect to SpaceClaim?

      Thanks a lot.

    • Aniket Chavan
      Forum Moderator
      SpaceClaim is a direct modeler while DesignModeler is more of a classic history-based Modeler. SpaceClaim is being developed actively, while the DM is now in maintenance mode along with scripting in DM.
      C:\Program Files\ANSYS Inc\v212\scdm\ should have more resources under the API versions folders with names such as SpaceClaim.Api.V19 etc, have you taken a look at it?
      later can store smart variables, and is encrypted, so can't be read in text editors
      resources at answer 2 should have examples there.
      -Aniket
      How to access Ansys help links
      Guidelines for Posting on Ansys Learning Forum
    • K Kramer
      Subscriber
      Thanks for your answer. Yes, there are multiple files in the folder:
      Some of them contain further information, but as far as I see the only complete command list is found in the .chm files and is rather sparse. But I hope I'll learn by doing.
      Also, what are smart variables? ;)


    • Aniket Chavan
      Forum Moderator
      smart variables are variables with metadata, with short names unlike the index-based variables for entity selection.

      -Aniket
      How to access Ansys help links
      Guidelines for Posting on Ansys Learning Forum

    • K Kramer
      Subscriber
      Thanks a lot.
Viewing 4 reply threads
  • The topic ‘Learning to script in SpaceClaim’ is closed to new replies.
[bingo_chatbox]