Renaming embedded Excel parameters without loosing connection to dimensions

Renaming embedded Excel parameters without loosing connection to dimensions

Anonymous
Not applicable
2,276 Views
12 Replies
Message 1 of 13

Renaming embedded Excel parameters without loosing connection to dimensions

Anonymous
Not applicable

Hi.

 

I have several models that rely on 100+ parameters. All of these parameters come from an embedded Excel sheet, meaning that they are "grayed out" in the Inventor parameters interface.

 

I'm in a situation now where I have to rename most of these parameters. If I rename them in the Excel sheet, Inventor will create "yellowed out" artifacts of the old names that will still be used for model dimensions. The renamed parameters from the Excel sheet are regarded by Inventor as new, and will not have any connection to the model dimensions. This forces me to reenter every singe dimension in the model.

 

Question: Is there a way to rename the parameters (preferably in Excel) while keeping them connected to the model dimensions?

 

Your help would be greatly appreciated. It would save me from many days of utterly mindless clicking.

 

Thanks in advance.

Inventor professional 2017.

0 Likes
Accepted solutions (1)
2,277 Views
12 Replies
Replies (12)
Message 2 of 13

asiteur
Collaborator
Collaborator
Accepted solution

Hi,

 

How about exporting to XML, do a find and replace and then loading the XML back in?

 

Especially when you just do something like oldname_suffix this is quite simple



Alexander Siteur
Project Engineer at MARIN | NL
LinkedIn

Message 3 of 13

Anonymous
Not applicable

Hi asiteur.

 

I tried your idea and it's a step in the right direction, but it did not solve it.

 

What happened when I imported the XML back in (after find and replace) was that the renamed parameters were added to "User parameters". All except a few (how?) of them now control the model dimensions while the embedded Excel parameters do nothing.

 

I still need the model dimensions to follow the embedded Excel.

 

I'm new to messing with the XML so maybe I'm missing something.

0 Likes
Message 4 of 13

Anonymous
Not applicable

Your solution worked! It was just a matter of first changing the embedded Excel.

 

 

0 Likes
Message 5 of 13

helpdesk
Enthusiast
Enthusiast

I was about to suggest that indeed.

Good to hear it solved your problem!

0 Likes
Message 6 of 13

mailswamp
Advocate
Advocate

How do I find and replace parameters in a whole assembly, where some parts may use the parameter, some don't.

Do I go into every part by hand?

 

Ctrl+F does not find names of the parameters that were used in sketches and other operations.

 

Thank you.

0 Likes
Message 7 of 13

johnsonshiue
Community Manager
Community Manager

Hi! Maybe iLogic rule can help you identify the parameters. You could create a rule at the assembly level and then capture all current parameters in individual parts and subassemblies. You will get the list of all parameter names and values.

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 8 of 13

mailswamp
Advocate
Advocate

I am not sure how to use I Logic.

It uses a very confusing scripting language that is not very well documented.

(I avoid I-logic and use Excel's programming language instead.)

 

Is there a sample script to do find-and-replace for the whole assembly.

 

Is there a find and replace that works on the assembly level?

0 Likes
Message 9 of 13

johnsonshiue
Community Manager
Community Manager

Hi! I think @asiteur offers the best solution here. For iLogic rule, you need to go to Manage tab -> Add Rule -> find Model tab in the Edit Rule dialog -> expand each component and right-click on the Linked Parameters -> Capture Current Status. All the linked parameters in a given part will be added to the rule and you can see which parameter name needs to be changed.

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 10 of 13

mailswamp
Advocate
Advocate

When I run this

2017-06-13 01_24_32-Autodesk Inventor Professional 2018 - [NEW Clamp Base Assembly 3 part.ipt.iam].png

 

 

I get this error message.

 

 

2017-06-13 01_24_19-Autodesk Inventor Professional 2018 - [NEW Clamp Base Assembly 3 part.ipt.iam].png

 

I can add or remove SyntaxEditor Code Snippet

Component.IsActive("NEW Clamp Base-03:3") = True

It makes no difference. I still get an error message

 

I am trying to change Link_Uni_Width to Link_Uni_Thickness in every part where this file was used.

I can do it by hand the stupid way. Yet I want to learn how to do it the smart way.

 

Thank you.

 

 

0 Likes
Message 11 of 13

mikko.m
Advocate
Advocate

Is there a way to rename linked excel parameters?


_____________________________________________________________________________________
Inventor Professional 2019.3
Vault Workgroup 2019.1.1
0 Likes
Message 12 of 13

johnsonshiue
Community Manager
Community Manager

Hi! Linked parameters are totally driven by the source (ipt, iam, and Excel spreadsheet). The names and values can only be changed at the source.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 13 of 13

mikko.m
Advocate
Advocate
If I change the parameter name in excel, it shows the parameter in yellow
in the inventor.
_____________________________________________________________________________________
Inventor Professional 2019.3
Vault Workgroup 2019.1.1
0 Likes