Does anybody have a macro that will center and fill a drawing sheet in the graphics area and repeat for multiple sheets (up to 50) ?
Check if the attached macro helps. For batch running use #TASK tool.
Not that hard to do. Get the outline the view and then set of its position. You can get the dimensions (height and width of the Sheet). The only thing you'd need to be aware of is that the position of the the view ignores whether the views's exploded state is shown or not. If the view's exploded state is shown then you need to account the difference in the outline between the two states so that when you are set the position in exploded state, it will fit right in the center of the sheet.
Cheers,Amen SOLIDWORKS API and PDM API Training and Services
This might help you:
2017 SOLIDWORKS API Help - Set Visible Bounding Box for Zoom to Fit Example (VBA)
PERFECT ! You da' SolidMan !!!
Retrieving data ...