ThisBOM.OverrideQuantity() now requires files to be read/write - Why...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I recently upgraded to Inventor 2022.
We came across this error recently when running a rule containing the line ThisBOM.OverrideQuantity()
It seems as though we now either have to have the file checked out to run the rule or change file status to read/write.
Can anybody shed some light on why this is? Is it only ThisBOM.OverrideQuantity() that now requires this or are there other commands affected. Is this a deliberate change (if so, then why), or is this a unintended side affect of another change.
Having a one-liner to change bom quantities is simple and has worked really well. I don't understand the logic of why we need to check out the assembly to make this change.
As a workaround I now have to include the below code to change the assembly's read/write status to run the rule. I don't want to check out and create a new version every time I configure my design.
sFileName = ThisApplication.ActiveEditDocument.fullfilename Dim oFile As System.IO.FileInfo oFile = New System.IO.FileInfo(sFileName) oFile.IsReadOnly = False
Related post - BOM Override iLogic Error - HELP!! - Autodesk Community - Inventor