GeneralDimensions.Retrive works differently from Retriving model dim thru UI

GeneralDimensions.Retrive works differently from Retriving model dim thru UI

CattabianiI
Collaborator Collaborator
685 Views
3 Replies
Message 1 of 4

GeneralDimensions.Retrive works differently from Retriving model dim thru UI

CattabianiI
Collaborator
Collaborator

I'm struggling with 3D model dimensions in these days. 


As every time I have to analyze a customer functionality request, I try the workflow thru UI; so I noticed I cannot retrive 3D model-child annotations in a drawing.
I finally came up retrieving sketch dimensions and filtering them based on parameters name.
I wrote some code lines in iLogic to test this approach and I surprisingly found my nested 3D model dimension!

drwDoc.ActiveSheet.DrawingDimensions.GeneralDimensions.Retrieve(view)

⋅ Is this a wanted behaviour of the method?, I do not think so because thru API I cannot retrieve the main assembly model dimensions.

⋅ How can I recognise the 3D model dimensions looping the Retrieve return value? The RetrievedFrom method throws an exception on 3D model dimension.

⋅ The GetRetrievableDimensions which is the proper method to call before Retrieve filters out the 3D model dimension, again: Why? 

Dim retrievableDimensions As Object = drwDoc.ActiveSheet.DrawingDimensions.GeneralDimensions.GetRetrievableDimensions(view)
drwDoc.ActiveSheet.DrawingDimensions.GeneralDimensions.Retrieve(view, retrievableDimensions)

 I tested part of this workflow in Inventor Beta 2019 too, and the behaviour is the same.

 

I attached parts, iam and idw with an iLogic rule to test what I'm saying.

 

Could you please provide some consistent methods to work with 3D model dimensions in future updates? Or let me know if I completly messed up the approach to work with 3D model dimensions in drawing thru API.

0 Likes
686 Views
3 Replies
Replies (3)
Message 2 of 4

CattabianiI
Collaborator
Collaborator

Sorry but I'm facing problem attaching zip file with new forum. Hope that works now.

0 Likes
Message 3 of 4

CattabianiI
Collaborator
Collaborator

And here the last part.

Message 4 of 4

CattabianiI
Collaborator
Collaborator

Something has changed since this post: 
- The following API has been released in Inventor 2022: DrawingView.Include3DAnnotations 
- This Idea is under review: https://forums.autodesk.com/t5/inventor-ideas/retrieve-3d-model-annotations-of-child-component-in-a-...so please keep upvoting for it if you need that. 

0 Likes