Anonymous
879 Views, 7 Replies
11-15-2018
02:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-15-2018
02:33 AM
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);
Solved! Go to Solution.