24 Jun 12 7:31
I want to get rid of all Mesh Warnings in Catia by either from the Search command or directly by vba code. The problem is that the warning doesn't seem to have any object properties, at least not from what can be found by recording a macro. The formal feature address when right clicking it is 'Mesh Warning.1/Spot Welding Connection Mesh.1/Nodes and Elements/Finite Element Model.1/Analysis Manager'
The recorded macro:
Dim analysisDocument1 As AnalysisDocument
Set analysisDocument1 = CATIA.ActiveDocument
Dim selection1 As Selection
Set selection1 = analysisDocument1.Selection
Dim analysisManager1 As AnalysisManager
Set analysisManager1 = analysisDocument1.Analysis
Dim analysisModels1 As AnalysisModels
Set analysisModels1 = analysisManager1.AnalysisModels
Dim analysisModel1 As AnalysisModel
Set analysisModel1 = analysisModels1.Item(1)
Dim analysisSets1 As AnalysisSets
Set analysisSets1 = analysisModel1.AnalysisSets
Dim analysisMeshManager1 As AnalysisMeshManager
Set analysisMeshManager1 = analysisSets1.ItemByType("MSHMeshSet")
Dim analysisMeshParts1 As AnalysisMeshParts
Set analysisMeshParts1 = analysisMeshManager1.AnalysisMeshParts
Dim analysisMeshPart1 As AnalysisMeshPart
Set analysisMeshPart1 = analysisMeshParts1.Item("Spot Welding Connection Mesh.1")
As can be seen, only the Mesh Warning Parent is selected for deletion which is not true.
The child "Mesh Warning.1" is not recorded...
I have had no success in finding the Warning in the Search either. (Or maybe I don't know how)
Anyone who knows about how to find the object ?