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:Ā 

Restore unsaved parts list changes to BOM's values

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
danipon71
1568 Views, 5 Replies

Restore unsaved parts list changes to BOM's values

In the parts list Items appearing in dark blue indicate the changes made have not been saved to the assembly Bill of Materials; with Save Item overrides to BOM these changes are saved back to the BOM, I'm looking for the opposite  command (or solution via API) to cancel the parts list changes or restore the BOM values.
Is there a command or a straightforward implementation thru API to achieve this?

5 REPLIES 5
Message 2 of 6
MechMachineMan
in reply to: danipon71

Delete all parts lists linked with that one.

 

Place a new parts list.


--------------------------------------
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 3 of 6
danipon71
in reply to: MechMachineMan

And the balloons too: not so straightforward.

Message 4 of 6

Hi @danipon71,

 

 

Unfortunately, Inventor API does not support single command which can restore unsaved parts list and balloons both.

 

Is it possible to iterate through all Balloons and compare with present parts list?

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 5 of 6

Hi @chandra.shekar.g,

> Is it possible to iterate through all Balloons and compare with present parts list?

I don't really get this point, are you integrating the @MechMachineMan answer? Because the balloons are updated on the parts list changes

 

What is possible at the moment is to iterate through all BOM's items and compare with present parts list, setting parts list cells that are different.

I haven't tryed to write this solution yet, but thru the UI this isn't enough because the parts list cells still appear in dark blue even if they're equal to the BOM's value; so it's necessary to call the Save Item overrides to BOM command; and that sounds a little bit odd and I don't know if it has side effects.

 

Message 6 of 6
danipon71
in reply to: danipon71

Ok I get the solution.

 

1. Double click on the parts list.

2. Select all the cells (or what you want)

3. Right click and click on Static value. Now all the selected cells have an overridden value.

4. Select again the cells, Right click and click on Static value.

Cattura.PNG

The property in the API is PartsListCell.Static.

 

A single command would be useful but that's ok for now.

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

Post to forums  

Autodesk Design & Make Report