Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products

SpaceClaim: Get Version info from script?

    • barrooze
      Subscriber

      Hi,

      I'm trying to find a command that will provide the SpaceClaim version in the scripting tool. Currently, I'm using "sys.path[0].find('\v193\') " to test the filepath, but that only works if the user does not change the install path. I was hoping to find something like "SpaceClaim.GetVersion()" which would result in the version # or something.

      Any ideas or help for this?

      Thanks!

    • Aniket
      Ansys Employee
      import clr
      clr.AddReference("Ans.Utilities")
      import Ansys
      version = Ansys.Utilities.ApplicationConfiguration.DefaultConfiguration.VersionInfo.VersionString
      This should work.
      -Aniket
      How to access Ansys help links
      Guidelines for Posting on Ansys Learning Forum
Viewing 1 reply thread
  • You must be logged in to reply to this topic.