Duplicate Surfaces

Akshay Manthekar
Akshay Manthekar Altair Community Member
edited May 2022 in Community Q&A

Hi Guys,

I am using error handling in TCL/TK for checking whether the entity used for midsurface creation is solid or not. First I check if component is solid or not using below command and if it is solid, I again use this command (except error handling) to generate midsurface.

set solidCheck  [catch {*midsurface_extract_10 solids 1 3 0 1 1 3 0 3 0 0 10 0 10 -2 undefined 0 0 0}];

But the problem is that I am getting duplicate mid-surfaces. So my question is do we get midsurfaces when we use above error handling code?

Any help is much appreciated.

Thank you!

Best Answer

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited May 2022 Answer ✓

    Yes.  With the catch command the command inside runs normally just if there is an error it doesn't crash your code.

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited May 2022 Answer ✓

    Yes.  With the catch command the command inside runs normally just if there is an error it doesn't crash your code.

  • Akshay Manthekar
    Akshay Manthekar Altair Community Member
    edited May 2022

    Thanks Ben!