Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Feb 26, 2004
9
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
 
Replies continue below

Recommended for you

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