Hi there,
using below code in R8 produces an error on a saved and opened document if no path
is provided to the method:
import scriptcontext
bitmap = scriptcontext.doc.ExtractPreviewImage(path=None)
print bitmap
The help doc for ExtractPreviewImage mentions this:
path
Type: System.String
The model (3DM) from which to extract the preview image. If null, the currently loaded model is used.
It seems, providing null (None
in Python) to the method does not work.
_
c.
1 post - 1 participant