Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
879 Views, 7 Replies

Retrieve dimension does not work

I need to retrieve specific dimensions using GeneralDimensions.Retrieve function.

But when collection of specific object of dimensions is sent as variable in the function, it retrieves all the dimensions between any two specific dimensions.

 

For e.g If dimension[1] and dimension[10] is to be retrieved and an object collection of these two dimension is sent as variable, the function retrieves dimensions from dimension[1] to dimension[10].

 

Does anyone have any solution to it?

Thanks in advance

 

 

 

                ObjectCollection retrievableDimensions = activeSheet.DrawingDimensions.GeneralDimensions.GetRetrievableDimensions(targetView);
ObjectCollection Finaldimensions = activeSheet.DrawingDimensions.GeneralDimensions.GetRetrievableDimensions(targetView);
                Finaldimensions.Clear();
                Finaldimensions.Add(retrievableDimensions[1]);
                Finaldimensions.Add(retrievableDimensions[10]);
                retirevedDiemsions = activeSheet.DrawingDimensions.GeneralDimensions.Retrieve(targetView,Finaldimensions);