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!

Delete Useless elements from Geometrical sets in Catia using vba

Status
Not open for further replies.

Sidtha

Aerospace
Joined
Nov 25, 2012
Messages
36
Location
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top