Combining total Value of Export Parameter from parts

Combining total Value of Export Parameter from parts

Anonymous
Not applicable
485 Views
6 Replies
Message 1 of 7

Combining total Value of Export Parameter from parts

Anonymous
Not applicable

Can I combine the total value from an export parameter

 

In this case, I've created a paramter called power in my part

 

What I would like to, is that when I insert two of these parts into an assembly, I would like to extract the total kW used

Lets say one is set to 2 kW and the other 4 kW, that would make it 6 kW total

 

This will be used in Factory

0 Likes
486 Views
6 Replies
Replies (6)
Message 2 of 7

johnsonshiue
Community Manager
Community Manager

Hi! There are a few ways to do it. The easiest is probably using iLogic rule. You can simply create an assembly parameter and then its value equals to the sum of the two part parameters. Or, you can link the two parts to the assembly parameter table. And, sum up the two parameters.

Many thanks!

 



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

Anonymous
Not applicable

How would I do the first thing you suggested?

 

Could you give an example?

0 Likes
Message 4 of 7

blandb
Mentor
Mentor

In your parts list you can add the column called "Power". Then format the column > Substitution Tab > When "Power" exists, then sum all the values. 

substitution.JPG

BOM.JPG

bom2.JPG

 

Hope that helps. If not, then like what @johnsonshiue  had mentioned, iLogic to a parameter.

Autodesk Certified Professional
Message 5 of 7

johnsonshiue
Community Manager
Community Manager

Hi! Here you go! Open the assembly and go to Parameters table. You will see Power_Total is the sum of Power in each part. Go to iLogic browser and edit the rule. It is fairly straight forward.

Many thanks!



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

Anonymous
Not applicable

Thanks

 

Your code...

 

Power_Total = Parameter("Test:1", "Power")+Parameter("Test:2", "Power")

Specifies very specific that the power value has to be extracted from parts Test:1 and Test:2. Would it possible to make a more "global" code, that extracts the power value no matter the part name?

0 Likes
Message 7 of 7

johnsonshiue
Community Manager
Community Manager

Hi! Each parameter reside in a document. You have to specify the component name. I think you could write the rule with a loop that cycling through selected components and then get the parameter value from each component and add up.

It should be doable.

Many thanks!



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