Reference parts to an assembly Drawing

Reference parts to an assembly Drawing

Anonymous
Not applicable
335 Views
3 Replies
Message 1 of 4

Reference parts to an assembly Drawing

Anonymous
Not applicable

Looking for a iLogic  code to create a string for parts and what assembly they belong to. Example I have 20 parts PL1 and there are 3 PL1's in Assembly SA1 and 2 PL1's in SA2 and 5 PL1's in Assembly SA3

I want a string to be "SA1, SA2, SA3"   I would save it to the part file.

 

Also then the same could be done for Sub Assemblies of Assemblies  SA1 is a sub assembly of SA5 and SA4 , string for SA1 would be "SA4, SA5" saved to the assembly SA1

 

Thanks

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

MechMachineMan
Advisor
Advisor

Check out the solution I had posted here.

 

https://forums.autodesk.com/t5/inventor-customization/part-quantities-per-assembly/td-p/6858321/page...

 

 


--------------------------------------
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 3 of 4

Anonymous
Not applicable

No code was displayed with the link. Just this.

 

02-10-2017 01:29 PM in reply to: MechMachineMan

Wow Man!

 

This worked perfectly.

 

Thank you so much!

0 Likes
Message 4 of 4

Owner2229
Advisor
Advisor

That's because what you've displayed was the second page of the post (the answer is on the first one):

https://forums.autodesk.com/t5/inventor-customization/part-quantities-per-assembly/m-p/6861729/highl...

Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
0 Likes