BOM (Assembly) columns multiplication

BOM (Assembly) columns multiplication

ABHUT_9090
Enthusiast Enthusiast
410 Views
3 Replies
Message 1 of 4

BOM (Assembly) columns multiplication

ABHUT_9090
Enthusiast
Enthusiast

Hello everyone,

I need to multiply  item qty and SQ_INCH column to get TOTAL_SQ_INCH. I need help with ilogic code to get this output.

 

Thank you.

Capture3.PNG

0 Likes
411 Views
3 Replies
Replies (3)
Message 2 of 4

SBix26
Consultant
Consultant

Inventor iLogic, API & VBA Forum


Sam B

Inventor Pro 2023.0.1 | Windows 10 Home 21H2
autodesk-expert-elite-member-logo-1line-rgb-black.png

Message 3 of 4

johnsonshiue
Community Manager
Community Manager

Hi! Sam is right. This requires an iLogic rule. The way BOM handles property expression is purely text-based. IT does not involve any math.

Please take a look at an old thread. The expert users share some apps and an iLogic rule.

 

https://forums.autodesk.com/t5/inventor-forum/part-assembly-quantities/td-p/4342976

 

Many thanks!



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

pcrawley
Advisor
Advisor

It is achievable with iLogic, but the result would be so dangerous I'd strongly recommend not doing it.

 

If you calculate the TOTAL_SQ_INCH value based on the three instances of that part in the assembly, then push it to the part's iProperty, the result would be correct. 

 

In the next assembly you place four instances of the same part.  One of two BAD things will now happen:

 

  1. You'll forget to run the iLogic and the the BOM shows TOTAL_SQ_INCH for 3 instances - which is incorrect because you placed 4 instances.

  2. You'll remember to run the iLogic rule and update the TOTAL_SQ_INCH for 4 instances.  You just invalidated the first assembly which had 3 instances.

I would suggest doing calculations like that in the Parts List on the drawing using substitution & sum of values.

Peter