Message 1 of 1
Get occurrence collection based on BOMROW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to create a collection of occurrences. My input is the BOMRow. But how can I best get all occurrences that are bound to this BOMRow?
BOMRow Object
BOMRow Object
Description
The BOMRow object represents an item in the BOM based on the parent BOMView.
Methods
Name | Description |
GetReferenceKey | Method that generates and returns the reference key for this entity. |
Properties
Name | Description |
Application | Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned. |
AttributeSets | Property that returns the AttributeSets collection object associated with this object. |
BOMStructure | Property that gets and sets how the BOM item represented by this row is used/viewed relating to design. |
ChildRows | Property that gets the BOMRowsEnumerator object containing the locally-stored rows under this BOMRow. This property will return Nothing for BOMRows in a parts-only view and if there are no sub-rows for this BOMRow. |
ComponentDefinitions | Property that returns the ComponentDefinitions associated with this row in the BOM. These could be part, sheet metal, assembly, weldment or a virtual component definitions. This enumerator will return just one component definition unless this row is a merged one, in which case all associated component definitions are returned. The first component definition in the enumerator is always the primary component definition. |
ItemNumber | Property that gets the item identifier (i.e. the Detail Id) of the BOM item. This number is based on the active numbering scheme (i.e. the BOM view) of the BOM. For a structure 'all-level' view, changing the item number will also change the base number for all children who's base number matches the previous item number. |
ItemNumberLocked | Property that gets and sets whether the item identifier can be edited. |
ItemQuantity | Property that gets the number of instances not marked as phantom or reference represented by this BOM row. |
Merged | Property that returns whether this row is a result of a merging multiple rows. If true, the ComponentDefinitions property returns all the associated component definitions. This property will return False for all rows in the data BOMView. |
Parent | Property that returns the parent BOMView or the BOMRow object. |
Promoted | Property that returns whether this row was promoted (for instance, as a result of the parent subassembly being marked phantom). This property will return False for all rows in the data BOMView. |
ReferencedFileDescriptor | Gets the FileDescriptor for the component referenced by this row. This only applies to non merged component rows and non local components and immediately referenced components. Therefore this would only be useful in the data view. |
RolledUp | Indicates whether this row is a result of rolling up multiple promoted rows of the same ComponentDefinition. |
TotalQuantity | Property that gets and sets the total quantity of the BOM item. This is either based on the unit quantity defined in the referenced ComponentDefinition times the ItemQuantity or is the override specified for this row. The TotalQuantityOverridden property can be used to determine whether this value has an override applied to it. Overrides cannot be set for parts only views. |
TotalQuantityOverridden | Property that gets and sets whether the TotalQuantity property has been overridden. This property can only be set to False, in which case the override on the value will be removed. |
Type | Returns an ObjectTypeEnum indicating this object's type. |
Samples
Name | Description |
Using the BOM APIs | This sample demonstrates the Bill of Materials API functionality in assemblies. |
Version
Introduced in Inventor version 10
Please kudo if this post was helpfull
Please accept as solution if your problem was solved
Inventor 2014 SP2