×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Catia Mesh Warning item

Catia Mesh Warning item

Catia Mesh Warning item

(OP)
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 ?

RE: Catia Mesh Warning item

(OP)
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...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources