Inventor VBA Get Derived Part Name

Inventor VBA Get Derived Part Name

isocam
Collaborator Collaborator
361 Views
3 Replies
Message 1 of 4

Inventor VBA Get Derived Part Name

isocam
Collaborator
Collaborator

Can anybody help?

 

I have a Autodesk Inventor VBA macro, attached, that exports a bill of materials to a txt file so that it can be opened using notepad (for testing purposes only).

 

This works fine except,

 

Some of the parts, in the assembly, are made using a "Derived Part".

 

For example,

 

I have created a "Laser Cut Profile" and saved it as "Part001.ipt".

 

I have then created a new part and inserted "Part001.ipt" as a "Derived Part".

 

I have saved this new part as "Part002.ipt"

 

The exported BOM file (in txt format) only outputs the part "Part002.ipt" and does not output the part "Part001.ipt"

 

Can anybody update the attached file so that it can also add the derived part to the exported bom file???

 

Many thanks in advance!!!

 

Darren

 

 

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

DRoam
Mentor
Mentor

I don't think the issue is with the code here. If you want Part001.ipt to participate in the BOM, then you should place it in your assembly.

0 Likes
Message 3 of 4

isocam
Collaborator
Collaborator

Hi,

 

It is already in the assembly as "Part002.ipt".

 

This part "Part002.ipt" is created using a derived part.

 

In the BOM, I can see the part "Part002.ipt" but I also want to show the derived part "Part001.ipt" in the BOM.

 

Can you please tell me how I can do this?

 

Kind Regards

 

Darren

0 Likes
Message 4 of 4

DRoam
Mentor
Mentor

@isocam wrote:

It is already in the assembly as "Part002.ipt".


This isn't quite true. If Part001.ipt is derived into Part002.ipt, all that means is that geometry from Part001 has been copied inside of Part002. But Part001.ipt itself is NOT "inside" of Part002 in the same way that a part can be placed "inside" of an assembly. Part002 does NOT contain Part001 -- it just references it and pulls some geometry from it. So derives do not appear in the BOM in any way.

 

In order to get Part001 in your BOM, you'll have to place Part001 itself in your assembly, or in a subassembly. There's no way to get a derive to show up in the BOM.

 

Now, if you're just concerned with your file that the iLogic is exporting, then you could certainly have the iLogic add the source of the derive (Part001) to the list of components. But that wouldn't affect the assembly BOM itself (or the Parts List on the drawing) in any way. They still would not show Part001.

0 Likes