Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Member Login

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"Because of this forum, I continue to WOW! my clients!"

Geography

Where in the world do Eng-Tips members come from?
brutemx (Automotive)
24 Jun 12 7:31
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 ?
brutemx (Automotive)
24 Jun 12 7:36
brutemx (Automotive)
1 Aug 12 17:34
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...

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!

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close