Can someone show me how to select all the views on a sheet with API,
so i can move them all together ( change their position on the sheet ) ?
Check/try attached macro.
The macro is made on SW2014. In case you're running a different version then update/correct the macro reference as suggested here (don't worry on the fact that video is for fixing missing library error but check the process to update your macro library): Fix-Update SOLIDWORKS Macro References
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swDraw As SldWorks.DrawingDoc
Dim swSheet As SldWorks.Sheet
Dim swView As SldWorks.View
Dim vViews As Variant
Dim i As Integer
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swDraw = swModel
Set swSheet = swDraw.GetCurrentSheet
vViews = swSheet.GetViews
For i = 0 To UBound(vViews)
Set swView = vViews(i)
swModel.Extension.SelectByID2 swView.Name, "DRAWINGVIEW", 0, 0, 0, True, 0, Nothing, 0
SolidWorks API Tutorials
Retrieving data ...