APIs for using the 'clearance' in Prepare tab using scripts in SpaceClaim ?

Member, Employee Posts: 10
Name Dropper First Anniversary First Answer First Comment
✭✭✭

How to use the above option using scripting in SCDM/Discovery ?

Answers

  • Member, Employee Posts: 63
    5 Answers Second Anniversary 10 Comments 5 Likes
    ✭✭✭✭

    Hi @Abhijith Rajan
    I think there is no APIs for using the clearance operation.
    You need to create your own solution, using MeasureHelper.DistanceBetweenObjects for instance.

    If you have many bodies in your model, you can narrow the search using BoundingBox.

  • Member, Employee Posts: 4
    First Anniversary Name Dropper Ansys Employee First Comment
    ✭✭✭
    edited June 2024

    Hi @Abhijith Rajan

    you should be able to use this to execute the command

    1. from SpaceClaim.Api.V241 import Command
    2. Command.Execute('CaeNearFaces')

    but it will only execute the command and give you a visual of the result

Welcome!

It looks like you're new here. Sign in or register to get started.