Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catia Mesh Warning item

Status
Not open for further replies.

brutemx

Automotive
Joined
Jun 24, 2012
Messages
3
Location
SE
Catia V5R20
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

selection1.Clear

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")

selection1.Add analysisMeshPart1
selection1.Delete

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 ?
 
After some own research it turned out that the warning isn't defined as an object which is a bad catia flaw. To only way to deal with it is to hard code it in CAA...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top