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

Abhijith Rajan
Abhijith Rajan Member, Employee Posts: 8
First Answer First Comment First Anniversary
✭✭✭

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

Answers

  • Gabriel Messager
    Gabriel Messager Member, Employee Posts: 54
    Ansys Employee First Anniversary Name Dropper 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.

  • Stefan
    Stefan Member, Employee Posts: 4
    Photogenic First Comment Name Dropper Ansys Employee
    ✭✭✭
    edited June 5

    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