m^2 to BOM with Ilogic

m^2 to BOM with Ilogic

marko.jessenjuhler
Contributor Contributor
240 Views
3 Replies
Message 1 of 4

m^2 to BOM with Ilogic

marko.jessenjuhler
Contributor
Contributor

Hi,

I'm looking for ilogic to set m^2 to bom automatically, Is that possible.

 

Similar as here but run by rule.

https://go.d3tech.net/inventor-blog/set-area-base-units

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

A.Acheson
Mentor
Mentor

This is possible but not without the relevant information. What is the workflow your using currently? With this information you can recreate the manual steps by code. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 4

WCrihfield
Mentor
Mentor

Hi @marko.jessenjuhler.  The primary Inventor API route for accessing those settings that you see on the Bill of Materials tab of the Document Settings dialog, is by the following.  The ComponentDefinition object is the base type that all other more specific ComponentDefinition types are derived from (PartComponentDefinition, AssemblyComponentDefinition, WeldmentComponentDefinition, SheetMetalComponentDefinition, etc, etc).  The ComponentDefinition object has a property called BOMQuantity, that returns a BOMQuantity type object.  That object contains all available methods & properties for accessing or editing those settings for the specific ComponentDefinition you accessed it through.  And keep in mind that a ComponentOccurrence objcect's Definition property returns one of these ComponentDefinition's too.  How you may need to structure or layout your code depends on all the other details of the task, so if you need someone to help you write some code for a specific task, please provide as much information and details about the task as possible, because code needs to be very precise or it may result in a lot of errors and/or unintentional changes.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 4 of 4

marko.jessenjuhler
Contributor
Contributor

Hi,
Here is example part with rule.

 

0 Likes