Running script error in ACT Stage page

zggnph
zggnph Member Posts: 7
Name Dropper First Comment
**



I encountered the following error while running the script on the ACT Stage page.

Comments

  • Landon Mitchell Kanner
    Landon Mitchell Kanner Member, Employee, GitHub-issue-creator Posts: 319
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    Try importing the current SpaceClaim API by using the following code:

    import os, sys
    clr.AddReference("Ans.Utilities")
    from Ansys.Utilities import ApplicationConfiguration
    version = ApplicationConfiguration.DefaultConfiguration.VersionInfo.VersionString
    
    sys.path.append(os.environ["AWP_ROOT"+version]+"/scdm/Scripting")
    clr.AddReference("SpaceClaim.Api.V{}".format(version))
    clr.AddReference("SpaceClaim.Api.V{}.Scripting".format(version))
    exec('from LoadSCDMAPITypesV{} import *'.format(version))
    exec('from UtilitiesOnLoadV{} import *'.format(version))
    
  • zggnph
    zggnph Member Posts: 7
    Name Dropper First Comment
    **

    Print the corresponding attributes using dir (SplitBody), without ByCutter.

  • Landon Mitchell Kanner
    Landon Mitchell Kanner Member, Employee, GitHub-issue-creator Posts: 319
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    See my previous comment: