Message 1 of 3
GetRetrievableAnnotations (Inventor 2025)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
after upgrading to 2025 version, I get a problem with retrieving model dimensions to a drawing.
In earlier versions of the Inventor (2023 and earlier) I used oSheet.DrawingDimensions.GeneralDimensions.GetRetrievableDimensions without any problems and the code returned ObjectCollection with the retrievable dimensions. In 2025 the API changed to oSheet.GetRetrievableAnnotations and the code returns empty collection, while oSheet.RetrieveAnnotations generate dimensions in the view correctly.
Code:
Public Sub test()
Dim oDrw As DrawingDocument
Set oDrw = ThisApplication.ActiveDocument
Dim oSheet As Sheet
Set oSheet = oDrw.ActiveSheet
Dim oView As DrawingView
Set oView = oSheet.DrawingViews.Item(1)
Debug.Print "GetRetrievableAnnotations:"; oSheet.GetRetrievableAnnotations(oView).Count
Debug.Print "RetrieveAnnotations:", oSheet.RetrieveAnnotations(oView).Count
End Sub
returns:
GetRetrievableAnnotations: 0
RetrieveAnnotations: 462
Any idea how to get retrievable dimensions in 2025?
best regards
Jiri