Extract Part Numbers from IAM (assembly)?

Extract Part Numbers from IAM (assembly)?

Anonymous
Not applicable
1,135 Views
11 Replies
Message 1 of 12

Extract Part Numbers from IAM (assembly)?

Anonymous
Not applicable

From a Wondows7 Command Line... I would like to extract the part numbers of iam files in a folder. CSV output would work fine. I'd like to have 2 columns... one for the Parent Number and one for the Child of that assembly.  

 
Is there a way to do this?
 
Thanks
0 Likes
1,136 Views
11 Replies
Replies (11)
Message 2 of 12

DRoam
Mentor
Mentor

Just to clarify...

 

1. Why Windows command prompt? Does it have to be that? Do you have access to Inventor on the PC that you want to do this with?

2. So you want one column with the part number of each assembly file within a folder, and a second column for the child part numbers? So, if the assembly structure is like this:

 

Assy1

 - Part 1

 - Part 2

Assy 2

 -Part 1

 -Part 3

 

Then your CSV file would look like this:

 

Assy1PN,Part1PN

Assy1PN,Part2PN

Assy2PN,Part1PN

Assy2PN,Part3PN

 

Is that correct? I'm not sure I understand what result you want.

 

3. Do you only one one level deep for the children of each assembly, or is it possible you'll want the full child structure?

Message 3 of 12

Anonymous
Not applicable
Thanks for the reply... and your example is exactly correct!
I do have Inventor on the machine I want to run this from. It does not have to run from the command line... I was thinking that I would like to be able to have command line options like pointing to the IAM folder and specifying the destination of the CSV...
One level deep would be fine...
I want to create a "Where Used" database...

Thanks again
0 Likes
Message 4 of 12

DRoam
Mentor
Mentor

@Anonymous wrote:
I want to create a "Where Used" database...

Ah I see, that makes sense!

 

I'm not sure of a good way to search through all of the assemblies in a folder and extract BOM information from it, except maybe this:

 

Could you create a Master Assembly and always place the assemblies you want to track inside of it? I'm sure from there we could find a way to push out the parent assemblies and their children, either using a straight-up export of the BOM or perhaps some iLogic. But this only works if you can keep up with putting any Assemblies you care about into this "Master Assembly." Is that a possibility or does it need to be more automated than that?

0 Likes
Message 5 of 12

mcgyvr
Consultant
Consultant

He needs this but with batch processing and not 1 at a time..

I'm sure there is a way to do it.. I don't know that way..

.net/vba/apprentice or something 100% outside of Inventor

 

http://www.cbliss.com/inventor/iCode/BomXTractor.htm

 

actually.. edit....

From another forum he has posted on (I'm just going to comment on here for now on instead of both as the amount of eyes/users is much greater here)

He just needs "where used" functionality.. Which Inventor (design assistant) and Vault already have.. 

So lets hear why those won't work or specifically what EXACTLY you need to happen.



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 6 of 12

MechMachineMan
Advisor
Advisor
It's annoying to launch design assistant all of the time.

I actually made my own WhereUsed / Find Children subroutine in vb.net to avoid having to open design assistant all the time.

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
Message 7 of 12

mcgyvr
Consultant
Consultant

@MechMachineMan wrote:
It's annoying to launch design assistant all of the time.

I actually made my own WhereUsed / Find Children subroutine in vb.net to avoid having to open design assistant all the time.

Just depends on the OP's needs..

If you just need to find out how many assemblies use 1 particular screw one time then its a no brainer to use DA..

Frankly I don't understand ANY company that doesn't have an ERP system of some sorts anyways...

Any decent ERP system will have where used.. 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 8 of 12

MechMachineMan
Advisor
Advisor
That's all a matter of ERP integration with CAD.

it is useful to have a whereused feature when you need to manage multiple
product lines with similar parts.

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
Message 9 of 12

Anonymous
Not applicable

Yes... I need something very simple...

We don't use Vault... and I'm dealing with stuff before it get's to our ERP system.  I know we need a better system, but this is what I'm stuck with today. 

 


@MechMachineMan wrote:
It's annoying to launch design assistant all of the time.

I actually made my own WhereUsed / Find Children subroutine in vb.net to avoid having to open design assistant all the time.

 

0 Likes
Message 10 of 12

MechMachineMan
Advisor
Advisor
The thing about where used outside of design assistant is that you need to
have any possible document the part may be used in loaded in memory in
inventor and then it will find and list which ones are used where. Good for
similar product lines.

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 11 of 12

Anonymous
Not applicable

Really all I want is what DRoam described...


@DRoam wrote:

Just to clarify...

 

...

2. So you want one column with the part number of each assembly file within a folder, and a second column for the child part numbers? So, if the assembly structure is like this:

 

Assy1

 - Part 1

 - Part 2

Assy 2

 -Part 1

 -Part 3

 

Then your CSV file would look like this:

 

Assy1PN,Part1PN

Assy1PN,Part2PN

Assy2PN,Part1PN

Assy2PN,Part3PN

 


 

0 Likes
Message 12 of 12

mcgyvr
Consultant
Consultant

So whats wrong with Design assistant? (Autodesk file menu, manage, design assistant.. in DA go to tools..find..where used)

 

And how can you have thousands of iam files to search whos boms aren't in ERP already?

 

Just asking questions to provide a proper answer and not steer you down a path of having to roll your own solution..

I see NO reason at this point to have to create anything for a where used in Inventor. Its already there.. 

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes