Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extract part qty with ilogic

24 REPLIES 24
SOLVED
Reply
Message 1 of 25
jletcher
5306 Views, 24 Replies

Extract part qty with ilogic

Ok I will try to make it as clear as mud what I would like to do.

 

Ok lets say I have an assembly with 20 parts.

 

I will make a detail drawing of the parts in the assembly.

 

In the detail part IDW I would like to have the qty needed for the assembly 1,2,4 ect.

 

So how I think the ilogic should work.

 

In the detail drawing have a rule named QTY when ran auto or manually Will pompt to pick the Top Level Assembly the parts are in.

 

The user will look for the top level assembly select it.

 

The rule would filter out all parts but the detail part number and return the QTY of parts needed for the assembly.

 

I only need the Qty.

 

I know this is done by the number of Occurrences in the assembly this I can find but what I can't find is how the user would look up the assembly and set it to parts only.

 

Like the pic below when doing a parts list.

 

Part list.JPG

 

I don't need the select view because it is a part and it would return QTY of 1 but the assembly may have 5.

 

Is there a way to do this?

24 REPLIES 24
Message 21 of 25
GKPByDesign
in reply to: MegaJerk

Genius! 

Message 22 of 25
rhasell
in reply to: MegaJerk

Hi

 

The original author of the code, thanks mate.

I have added your name into my code. (Always try and credit the authors in my code)

 

Reg
2024.2
Please Accept as a solution / Kudos
Message 23 of 25
cadman777
in reply to: MegaJerk

MJ,

You're it!

Many times you bailed me out, and I learned a lot in the process.

Cheers!

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
Message 24 of 25
Anonymous
in reply to: MegaJerk

Your solution was indeed helpful. I tried to figure out different ways but that one was the best 

Message 25 of 25
dliteful
in reply to: MegaJerk

Thank you so much for this!  Is there a way to ignore parts marked for reference?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report