Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: YuhanZhang

@YuhanZhang thank you for your response

You can use any part model with drawing to test just use the below code and You will get set of dimensions in drawing instead of just the two dimensions which was specified in dimensions object collection

ObjectCollection retrievableDimensions = activeSheet.DrawingDimensions.GeneralDimensions.GetRetrievableDimensions(Viewobject);
// to get all the retreivable dimensions
                ObjectCollection Finaldimensions = activeSheet.DrawingDimensions.GeneralDimensions.GetRetrievableDimensions(Viewobject);
                Finaldimensions.Clear();
                Finaldimensions.Add(retrievableDimensions[1]);
                Finaldimensions.Add(retrievableDimensions[10]);
// here we add two specific dimensions in the object collection that is to be retrieved.
                retirevedDiemsions = activeSheet.DrawingDimensions.GeneralDimensions.Retrieve(Viewobject,Finaldimensions);
// here the dimensions are retrieved

Awaiting your reply.

Thank you