In IDW how to delete all parameter?

omvcilindri
Contributor
Contributor

In IDW how to delete all parameter?

omvcilindri
Contributor
Contributor

hi everybody

I need help, I would like to delete all parameter in idw file existing, is it possible whit ilogic?

tanks to all

 

 

0 Likes
Reply
Accepted solutions (2)
351 Views
2 Replies
Replies (2)

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @omvcilindri 

 

I had this example on hand.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

oRUSure = MessageBox.Show("Are you sure you want to delete all of the" & vbLf & _
"parameters in this file?", "iLogic", MessageBoxButtons.YesNo, MessageBoxIcon.Question)

If oRUSure = vbNo Then Return 'exit rule

oApp = ThisApplication
Call oApp.TransactionManager.StartTransaction(ThisDoc.Document, "Delete All Parameters")
'[
oDoc = ThisApplication.ActiveDocument
oParams = oDoc.Parameters

'look at each parameter
Do Until oParams.Count = 0
	For Each oParam In oParams
		'delete the Parameter
		Try : oParam.Delete : Catch : End Try
	Next
Loop

oApp.TransactionManager.EndTransaction

 

EESignature

omvcilindri
Contributor
Contributor
Accepted solution
Amazing
great job
thanks
0 Likes