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.

SpaceClaim API Scripting Classes Issue

    • Bennett Teitle
      Subscriber

      Hello, I wanted to make a post about an issue I have recently encountered with the API user interface. I an making a script that will autodimension a cross section of a solid object first by cutting it via splitbody, and then running a for loop to add all target faces to be measured to a list. Here is the problem:

      When I split the solid it creates two bodies and deletes one. I want to be able to access this remaining body's attributes so that I can say "For every face in this body, do this operation." I have experiemented with the IDesignFace and IDesignBody classes, but just can get anything to stick without the script saying "expected array [Type], got int", or "unexpected token'('" when I eventually run the append operation. Can anyone help?

    • subashni.satish
      Forum Moderator

      Hello Bennett,

      Let me try this operation from my end and get back to you.

Viewing 1 reply thread
  • The topic ‘SpaceClaim API Scripting Classes Issue’ is closed to new replies.
[bingo_chatbox]