We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

SpaceClaim API C# – Reference libiaries

    • Udeep Shah
      Subscriber

      Hello,

      Currently, I am trying to use Selection in my code (API V17). I got an error saying I needed to add the reference SpaceClaim.Foundation.resources. After adding that to my references, I got the error code CS0234 (The type or name 'Foundation' does not exist in the namespace 'Spaceclaim').  Not sure what I am doing wrong here or if I am missing some files elsewhere.

    • Atharv Joshi
      Forum Moderator

      Hi Udeep, 

      What's your exact goal with this script? 
      I will check and get back to you. 
       
      Thanks and Regards
      Atharv

       

    • Udeep Shah
      Subscriber

      Hello Atharv,

      I am trying to generate mid surfaces for different solids using the scripting library, But I run into issues when trying to use the selection class. 

    • Udeep Shah
      Subscriber

      Hello Arthav,

      Sorry I figure out my mistake, the file I was looking for SpaceClaim.Foundation was not available in my version SpaceClaim folder. I was able to rectify this by using the reference library for a higher version, that resolved my issue but does cause a bit of a mismatch between the version I am suppose to use and the version I am using (So far no runtime issues). 

    • Atharv Joshi
      Forum Moderator

      Hello Udeep, Thanks for the update. 

Viewing 4 reply threads
  • The topic ‘SpaceClaim API C# – Reference libiaries’ is closed to new replies.