Hi,
is there way to refresh sheet of drawing when an iProperty is changed trough API? When I change for example revision Number, the sheet still show old number. The value is changed, because if I open the iProperty dialog, there is new value and also when iProperty dialog is close then the sheet (title block with this property) is immediately correctly updated. I know that I can use ActiveSheet.Update method, but this update whole sheet and it take long time. There nust be something better because dialog iProperty doesnot update whole sheet and it is vvery quick.
Dim oISI As Inventor.PropertySet Dim oDrw As Inventor.DrawingDocument Set oDrw = ThisApplication.ActiveDocument Set oISI = oDrw.PropertySets.Item("Inventor Summary Information") oISI.Item("Revision Number").Value = "test" oDrw.ActiveSheet.Update ' I would like to replace this line, this take long time
There is similar thread, but without solution http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/How-to-refresh-titleblock-immediately/....
Thank you
I've tested your code in Inventor 2013 x86 and x64.
In both environments it refreshes the title block with new revision number fast.
What is your version of Inventor?
Does this delay depend on the drawing complexity?
Thank you, yes this depend on drawing complexity. If I understand the method oDrw.ActiveSheet.Update recalculate whole sheet, all viewvs, sections and etc. This is what I don't want. I would like to refresh only symbols, corner title in same way as native iProperty dialog do.
I use 2013SP1.1.
Petr
Hi,
I agree this depends on the specific scenario. The last I can think of is, after the property is changeset delete the symbol and add it again with the new property. This would mean to update the symbol only.