Did you set a valid path for the file?
Does the file have a configuration named "Default"?
Set p = swApp.GetPreviewBitmap("C:\calls5\block.sldprt", "Default")
are you using 32 bits SW?
1. Yes the filepath is correct and yes the file has a default configuration.
2. No I am using 64 bits SW 2014