VBA - Getting Derived Part In Assembly BOM

VBA - Getting Derived Part In Assembly BOM

isocam
Collaborator Collaborator
828 Views
1 Reply
Message 1 of 2

VBA - Getting Derived Part In Assembly BOM

isocam
Collaborator
Collaborator

Can anybody help?

 

I have a vba project that can extract an assembly BOM.

 

However, it does not output derived parts. Can anybody tell me what is wrong with my code, shown in the attached file?

 

What I am trying to do is create a ipt file of a "Laser-Cut" component. Use this component to make another component with drilled, tapped holes in it. Then use this plate, containing the drilled and tapped holes in an assembly.

 

I need to output this "Laser-Cut" part in my vba created BOM.

 

Is it possible?

 

Many thanks in advance!!!!

 

IsoCAM

0 Likes
829 Views
1 Reply
Reply (1)
Message 2 of 2

xiaodong_liang
Autodesk Support
Autodesk Support

Hi IsoCAM,

 

If I understand correctly, your scenario is:

 

Assembly

   Part (which has the derived part)

 

You want to get the info of the derived part.

 

In the assembly context, it regards the part/sub-assembly as its components. While the derived part is the components of the part itself. So it is not strange BOM does not contain the derived part. The same to UI.

 

But it is not difficult to get the derived part. Once you get the part when dumping BOM, you can get derived part like below:

 

BOMRow.ComponentDefinitions(1).ReferenceComponents.DerivedPartComponents

 

0 Likes