Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: vba how to attach raster reference and set the level for that attachement

$
0
0

thanks everyone for the help. you all helped me go the direction I needed.

Frank, setting the active level would work if I wasn't setting a default level for rasters in my preferences. but the get element from raster is what I needed.

this is what I ended up with.

Dim oRastMan As RasterManager, oRast As Raster


Dim strTiffPath As String, oLevel As Level, oElement as Element

set oRastMan = RasterManager


Set oLevel = ActiveDesignFile.Levels("RS_Raster2")


strTiffpath = "Put path to file here"


Set oRast =oRastMan.Rasters.Attach(strTiffPath)


Set oElement = oRastMan.Rasters.GetElementFromRaster(oRast)


oElement.Level = oLevel


oElement.Rewrite


Viewing all articles
Browse latest Browse all 7260

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>