Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Delete Useless elements from Geometrical sets in Catia using vba

Status
Not open for further replies.

Sidtha

Aerospace
Nov 25, 2012
30
0
0
IN
Hello All,

Could you help me to Delete Useless elements from Geometrical sets in Catia using vba.

Delete_Useless_Elements_srp59y.jpg


Here is my code which is double clicking on above part but need to double click on highlighted part and then click on Tools >> Delete unused elements
1Delete_Useless_Elements_eghc9i.jpg


If (Mid(MyCurrPN, 18, 4) = "-BGE" Or Mid(MyCurrPN, 19, 4) = "-BGE") And (Left(MyCurrPN, 4) = "D928" Or Left(MyCurrPN, 4) = "E928") Then
Set oSelection = MyCATIA.ActiveDocument.Selection
oSelection.Search "(name:'" & MyCurrInstanceName & "'),all"

AppActivate ("CATIA V5")
SendKeys "c:" & "FrmActivate" & Chr(13), True
End If

BR
Siddu
 
Replies continue below

Recommended for you

Status
Not open for further replies.
Back
Top