[MSV8i SS10 VBA] Set Clip Boundary by Points

Is there a way to Set Clip Boundaries through VBA?

I am trying to loop through my Raster Images to replace them with another image (which is another problem for another post!) then set the clip boundary based on 2 points.

When looking at the options within VBA is looks like it can only be an element. Rather than try to create a new element then remove it i thought i would see if anyone has had any experience with this previously.

I recorded a Macro to try to get some hints but it didn't really help.

I was hoping to use something along the code block below

    For i = 0 To RasterManager.Rasters.Count - 1
        Set oRaster = RasterManager.Rasters(i)
        If InStr(oRaster.RasterInformation.Name, "_") > 0 Then
            oRaster.SetClipBoundary oPoint1, oPoint2
        Else
            oRaster.SetClipBoundary oPoint3, oPoint4
        End If
        oRaster.Reload
    Next

Using V8i SS10 on Windows 10.

Thanks!

Parents Reply Children