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

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

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

Answers

  • Gabriel Messager
    Gabriel Messager Member, Employee Posts: 56
    Second Anniversary 10 Comments 5 Likes Name Dropper
    ✭✭✭✭

    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.

  • Stefan
    Stefan 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

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

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