GeneralDimensions.Retrive works differently from Retriving model dim thru UI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.