Check If there are any recomputable changes were done to active 3Dmodel (IAM)

Check If there are any recomputable changes were done to active 3Dmodel (IAM)

Maxim-CADman77
Advisor Advisor
727 Views
7 Replies
Message 1 of 8

Check If there are any recomputable changes were done to active 3Dmodel (IAM)

Maxim-CADman77
Advisor
Advisor

I'd like to know is it possible to check whether any recomputable changes were really done to active 3Dmodel (IAM) using API.

Most close search results by string "Recomputable Changes" within CHM is

SaveOptions.PromptSaveForRecomputableChanges () Property As Boolean

which is not what I'm searching for... 

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
728 Views
7 Replies
Replies (7)
Message 2 of 8

bradeneuropeArthur
Mentor
Mentor
Public Sub upda()
Dim a As Document
Set a = ThisApplication.ActiveDocument

msgbox a.RequiresUpdate
End Sub

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 8

Maxim-CADman77
Advisor
Advisor

Both RequiresUpdate and Dirty Properties has False value.

Any other ideas?

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 4 of 8

Maxim-CADman77
Advisor
Advisor

For some assemblies prompt to save changes on close is shown.

This happens not on all IAMs and only if option "Prompt to save re-computable changes" (on "Save" tab) is enabled while option "Express mode" (on "Assembly" tab) is disabled.

API calls return "False" value for all four Properties that I think might have relation:  RequiresUpdate, Dirty,  IsOpenExpress, IsOpenLightweight.

I still would like to know how to determine such situation via API.

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 5 of 8

Maxim-CADman77
Advisor
Advisor

I still need help with this question.

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 6 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@Maxim-CADman77,

 

Hoping that below article would helpful.

 

http://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-308EA8F0-A1DC-4236-9F8F-E20382EF7772

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 7 of 8

Maxim-CADman77
Advisor
Advisor

Thank you, but I still have some concerns.

For example I have such a sample IAM which says nothing on open but asks to save it on close (because of some yet unknow recomputable updates).
I then disable auto-start of all the add-ins (just in case), discard saving the IAM, re-start inventor and re-open the IAM.

Then I open About Inventor window and press Ctrl+Shift+D and see that none of the present entries is marked in any way:

image.png

I then close this window and press close the IAM. It suggests to save changes. I instead cancel the close operation. And re-open the diagnostic info window. Now I see the two check-boxes marked "Database considered Dirty" and "eUpdateCommand" (and DirtyBits="0X10"):

image.png

I wonder if I can receive any of this flags through API just after open (without attempt to close)?

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 8 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@Maxim-CADman77,

 

Can you please provide reproducible steps and data set to test? please make sure that files are non confidential.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes