Changing parameter descriptions of multiple parts at once

Changing parameter descriptions of multiple parts at once

tommie.haarselhorst
Contributor Contributor
457 Views
3 Replies
Message 1 of 4

Changing parameter descriptions of multiple parts at once

tommie.haarselhorst
Contributor
Contributor

Hey all,

 

At our company we work with parts list (in .Idw) that are getting information from certain parameters in the parts. I found out some new colleague has a lot of usefull parts that we want to implement in our database. However he used different names for his parameters which don't match with our "smart" parts list.

 

Is there a way using Inventor or the vault to mass replace all parameter names for multiple parts. For example: Can I select 100 parts and replace parameter "H_" for "Hoogte".

 

tommiehaarselhorst_0-1666870850616.png

0 Likes
Accepted solutions (2)
458 Views
3 Replies
Replies (3)
Message 2 of 4

CGBenner
Community Manager
Community Manager

@tommie.haarselhorst 

 

Hello.  This sounds like something that would require some programming to perform.  I'll move this to the iLogic forum in the hope that one of the experts there might have some ideas.

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!


Chris Benner
Community Manager

Message 3 of 4

Gabriel_Watson
Mentor
Mentor
Accepted solution

You will have to do this through iLogic. Vault only sees the properties on the file, but cannot alone dig through inherent characteristics of the model files.

 

Try placing all your friend's parts into one assembly and run this iLogic on it. It should safely rename all the parameters "H_" to "Hoogte" on all subcomponents (assuming you do not have any "Hoogte" parameter already on those components that have a parameter named "H_"):

 

Dim openDoc As AssemblyDocument
openDoc = ThisApplication.ActiveDocument
Dim oDoc As Document
For Each oDoc In openDoc.AllReferencedDocuments
	Dim oParameter As Parameter
	For Each oParameter In oDoc.ComponentDefinition.Parameters
    	If oParameter.Name = "H_" Then
        	oParameter.Name = "Hoogte"
    	End If
	Next
Next

 

Message 4 of 4

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @tommie.haarselhorst 

 

Attached is a batch tool that will allow you to select 100 parts ( you might do it in smaller batches at first to test it).

 

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

Curtis_Waguespack_0-1666880367852.png

 

EESignature