Macro to check scale of all views (on active or all sheet) of active drawing and set them to use sheet scale (in case of parent views) and use parent view scale in case of projected views. The macro would skip section views and detail views.
Have you ever come across a method to rescale all the sheet scale to maximize the size of the views? Presently we don't use the standard 3 views, we use a flat pattern and isometric view independently added to the drawing via API created add-in and I would like to read the extents of the views, something like bottom left corner of view1 and upper right corner of view two and then use a formula to determine a new sheet scale to adjust the views to fit an defined area on our drawing. so if the defined area was started as 0,0 and set to 17,11 and view 1 lower left was at 2,1 and view 2 upper right was at 14,8 I could calculate/measure the present view space used as 12,7 and determine a scaling factor to max out the views to fit the 17,11 area in this example I would compare the divide the desired x by the measured x and do the same for the y and then see which fit in the 17,11 with out exceeding(in most cases I should only need to worry about the X dims ) In this case I would need to up the scale by a factor of 1.42. I cold then change the view or sheet scale.
By the way several of your posts have been extremely helpful.
In the past I had created a paid project where a part of project was to adjust the view scale in one defined area of the sheet. So view adjustment can be done. If you are interested further then kindly PM me.
Thanks for the response, I was able to find a way to do this using .getOutline and .scaleDecimal
view1y1 = swView.GetOutline(1) view1y2 = swView.GetOutline(3) viewSCL = SheetWDT / (view1y2 - view1y1) swView.ScaleDecimal = swView.ScaleDecimal * viewSCL
Retrieving data ...