Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

In IDW how to delete all parameter?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
omvcilindri
329 Views, 2 Replies

In IDW how to delete all parameter?

hi everybody

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

tanks to all

 

 

Labels (3)
2 REPLIES 2
Message 2 of 3

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

 

Message 3 of 3

Amazing
great job
thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report