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 MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete a selection in VB

Status
Not open for further replies.

0328500091

Industrial
Joined
Feb 26, 2004
Messages
9
Location
BE
Hi, how delete a selection in VB please, I try this but it's not OK:

Language="VBSCRIPT"
Sub CATMain()
Dim productDocument1 As Document
Set productDocument1 = CATIA.ActiveDocument
Dim product1 As Product
Set product1 = productDocument1.Product
product1.ApplyWorkMode VISUALIZATION_MODE
Dim selection1 As Selection
Set selection1 = productDocument1.Selection
selection1.Search "CATAsmSearch.MfConstraint,all"
productDocument1.Remove selection1
End Sub

Thanks
Dom
 
Hi,

change

productDocument1.Remove selection1

for

selection1.delete

indocti discant et ament meminisse periti
Eric N.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top