DMU Space Analysis

Computing a Clash and Filtering Results


This macro shows you how to use clashes to compute and filter an interference: all conflicts with a given type or with a penetration depth greater than a given value will be declared as irrelevant with a comment. The macro assumes that a CATProduct has been loaded and that some components are selected.

This image shows the selection state before the use of the macro :

 

This image shows the result of the macro in the clash panel :

 

CAASpaClashFiltering is launched in CATIA [1]. A previously opened document is needed.

CAASpaClashFiltering.CATScript is located in the CAAScdDmuUseCases module. Execute macro (Windows only).

 

CAASpaClashFiltering includes four steps:

  1. Acquiring the filtering value
  2. Retrieving the clashes collection
  3. Creation and computation of the clash
  4. Filtering of the conflicts

Acquiring the filtering value

The dFilterValue value is acquired with a Inputbox.

Retrieving the clashes collection

The cClashes collection (see Clashes ) is the factory to create Clash object : this collection is retrieved using the GetTechnologicalObject method, with the string "Clashes", on the root product of the active document.

Creation and computation of the clash

The oClash object is created using AddFromSel method on the cClashes collection to take into account all selected components, modified with the ComputationType and the InterferenceType methods to perform the right computation, and then computed with the Compute method.

Filtering of the conflicts

A loop is done on all the conflicts using Conflicts on oClash, to get cConflicts collection, Count to read the number of conflicts and Item to access each of them, oConflict.

The filtering is done using Type and Value methods, on oConflict, to get the results.

If needed, the status and the comment of the conflict are modified with Status and Comment methods.

[Top]


In Short

This use case has shown how to use Clash in order to compute and filter an interference. Specifically, it has illustrated how to :

[Top]


References

[1] Replaying a Macro
[2] Space Analysis automation objects

[Top]


DMU Navigator Home DMU Space Analysis Home DMU Kinematics Simulation Home

Copyright © 2001, Dassault Systèmes. All rights reserved.