Copy Custom Parameters from one .ipt to Multiple .ipt's (Existing Files)

Copy Custom Parameters from one .ipt to Multiple .ipt's (Existing Files)

RockyBrown4134
Collaborator Collaborator
973 Views
7 Replies
Message 1 of 8

Copy Custom Parameters from one .ipt to Multiple .ipt's (Existing Files)

RockyBrown4134
Collaborator
Collaborator

I have posted this question in the General Community Group, "custom-parameters-from-one-ipt-to-multiple-ipt-s-existing"

 

Is there a way to copy parameters from one part file to multiple part files? I have two parameters that I would like to add to multiple files at once.

 

The Example below, Cutlength already existing in the part files. I want to add the parameters FT and IN. My ultimate goal is to have feet and inches displayed in my parts list.

 

parameter.jpg

 

Moderator: Please move or remove Duplicate post is needed.

 

Thanks.

If this response answers your question, Please mark this response as "Accept as Solution"

Rocky Brown
AutoCAD 2020 / Inventor 2020 / Plant 3D
0 Likes
Accepted solutions (1)
974 Views
7 Replies
Replies (7)
Message 2 of 8

Chirpyboy2060647
Advocate
Advocate

Well IDK aside from adding them in manually, but you could always make a .ipt template with your params in there this way every new part you make will always have them.

 

Edit: Actually I take that back...If you do a little forum research (i forgot where i found it) i remember i found a code that would add params into the documents. (I still suggest the template for future)

0 Likes
Message 3 of 8

rossano_praderi
Collaborator
Collaborator

Hi Rocky,

the attached files contain two rules, the first save all the parameters of the activedocument (which contain the rule) as XML file.

 

The second rule will import all previously saved parameters in each opened PartDocument.


This is a basic sample, if you need some more complex code you have to give us more details.

 

 

Bregs

Rossano Praderi



--------------------------------------
If my post answers your question, please click the "Accept as Solution"
button. This helps everyone find answers more quickly!
---------------
Message 4 of 8

RockyBrown4134
Collaborator
Collaborator

Thank you. I will try the rule in the morning.

If this response answers your question, Please mark this response as "Accept as Solution"

Rocky Brown
AutoCAD 2020 / Inventor 2020 / Plant 3D
0 Likes
Message 5 of 8

Curtis_Waguespack
Consultant
Consultant

Hi RockyBrown4134,

 

I replied to the other thread, so I thought I'd tie these together. I like Dshortway's method of importing/exporting the XML and might try to incorporate his method into mine if I get time.

 

http://forums.autodesk.com/t5/inventor-general-discussion/copy-custom-parameters-from-one-ipt-to-mul...

 

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

EESignature

0 Likes
Message 6 of 8

RockyBrown4134
Collaborator
Collaborator

Prior to reading Dshortway's method of importing/exporting the XML, I had tried that method, doing so to each individual file. I really like Dshortway's method, and I will try it tomorrow. 

 

To make sure I understand correctly, I open my part file with the parameters I want to export. Run the irule to export them to a XML file. Then, while I have multiple open part files, I run the irule to import the parameters. Then it should be a matter of reseting the Cutlength value.

 

Please correct me if I misunderstood.

 

Thanks.

If this response answers your question, Please mark this response as "Accept as Solution"

Rocky Brown
AutoCAD 2020 / Inventor 2020 / Plant 3D
0 Likes
Message 7 of 8

rossano_praderi
Collaborator
Collaborator

Hi Rocky,

what you are saying is almost true.

 

With this basic example you need to keep in mind the follow rules:
- every parameter (names and values) within your .IPT, will be exported without any kind of control
- during the importing process, every parameter will be created or overridden with names and values of the exported parameters

then

 

My suggestion is to start from a clean .IPT, which contain only the required parameters and values.

 

I'm trying to be more clear as I can, I believe you will understand what I'm trying to explain otherwise let my know your doubts.

 

 

Bregs

Rossano Praderi



--------------------------------------
If my post answers your question, please click the "Accept as Solution"
button. This helps everyone find answers more quickly!
---------------
0 Likes
Message 8 of 8

RockyBrown4134
Collaborator
Collaborator
Accepted solution

Please See the following post for the solution I used.

 

http://forums.autodesk.com/t5/inventor-general-discussion/copy-custom-parameters-from-one-ipt-to-mul...

 

A BIG THANK YOU to Curtis for his assistance.

 

Thank You again Curtis!

If this response answers your question, Please mark this response as "Accept as Solution"

Rocky Brown
AutoCAD 2020 / Inventor 2020 / Plant 3D
0 Likes