3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

No API_Class_Library.chm file in SpaceClaim.Api.V23 sub-folder

    • wen_liu
      Subscriber

      I cannot find the SpaceClaim API documentation in the installation folder as specified in the manual. I located the SpaceClaim.Api.V23 folder, but there is no such file as "API_Class_Library.chm". Is there any other way to access the class library file?

    • Devendra Badgujar
      Forum Moderator

      Hello Wen Liu, 

      Please make sure you are searching in the correct location as shown below: 

      C:\Program Files\ANSYS Inc\v241\scdm\SpaceClaim.Api.V23

      These are available directly with installation. 

      Regards,

      Devendra

      • wen_liu
        Subscriber

        Thanks Devendra. I found it; but am I correct that none of the library files in V23 provide python syntax?

    • Devendra Badgujar
      Forum Moderator

      Hello Wen, 

      Thanks for your update. Can you please explain what exactly you were looking for so that I can help you find it? 

      Regards, 

      Devendra 

      • wen_liu
        Subscriber

        Hi Devendra, I am trying to write a script in SpaceClaim to create some periodic structure; though the programming language I am most familiar with is Python, so I am trying find a documentation which can show me python syntax. 

    • Devendra Badgujar
      Forum Moderator

      Hello Wen, 

      Ansys SpaceClaim offers scripting capabilities that you can utilize with Python. You can create a new script by selecting File > New > Script, which opens up the Script Editor. The tutorial Discovery SpaceClaim: Model Prep for CAE & MFG - Scripting  mentions that with some knowledge of Python and familiarity with the SpaceClaim API, you can automate tasks such as importing and repairing files or creating basic geometry. Additionally, there's a function to insert code snippets from a predefined library of operations and commands, which can be accessed from the Insert Code Snippet button in the Script Editor toolbar

      Furthermore, the "Scripting" documentation for SpaceClaim provides information on the Class Library for a detailed description of the API, which can be found in the installation directory of SpaceClaim. This resource is particularly useful if you're looking to work with SpaceClaim programmatically using Python.

      For SpaceClaim: C:\Program Files\SpaceClaim \SpaceClaim.Api.

      I hope this helps. Thank you! 

      Regards,

      Devendra 

Viewing 3 reply threads
  • The topic ‘No API_Class_Library.chm file in SpaceClaim.Api.V23 sub-folder’ is closed to new replies.