CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 17744

CAD tip CAD tip # 13611:

   
Question CAD 
 %  platform  category 
Q - question

BOM with multi-line items in Inventor.

A - answer Using a calculated iProperty and an auxiliary iProperty with the code of "new line", you can create a BOM in Inventor where the description of the item will spread over several lines - e.g. for an item description in different languages, one on each line.

You need to have a separate iProperty for each output line of the part (you can of course use existing part iProperties). Then, create a separate auxiliary custom iProperty (e.g. "CrLf") in the component(s), which will contain the characters for a line break (ASCII {13} + ASCII {10}, or VBA/iLogic offers the constant vbCrLf). Now use an expression to concatenate these iProperties into a single target iProperty - in our case "BomLine":

=<‍myBomLine1><‍CrLf><‍myBomLine2>

This combined target iProperty is then displayed in the BOM. You can thus edit the individual rows independently.

The iLogic code to create the auxiliary iProperty "CrLf" with the line-break code:

Call ThisApplication.ActiveEditDocument.PropertySets("{D5CDD505-2E9C-101B-9397-08002B2CF9AE}").Add(vbCrLf, "CrLf")

The resulting BOM in an IDW/DWG drawing - multiple line items:

Two-line BOM, parts list

Inventor
100% *  CAD 
24.1.2023    19390×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
Tip 12347:Invalid or incomplete DXF input -- drawing discarded.
Tip 11732:How to sort BOM or parts list by part number in Inventor? (iLogic)
Tip 9532:How to split Inventor parts lists to multiple sheets?


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist