I want to get the height, width and depth of a part because I want to automatically change the drawing scale. Which function I should use?
In Solidworks API you can get bounding box for drawing view or component:value = IComponent2.IGetBox(IncludeRefPlanes, IncludeSketches)
value = IView.GetOutline()
see example: 2013 SOLIDWORKS API Help - Get View Bounding Box and Position Example (VBA)
Retrieving data ...