ExtractPreviewImage() argument number error using rhinoscriptsyntax

I am trying to use ExtractPreviewImage in a Python script but don’t understand the errors I see regarding the number of arguments.

With

rs.ExtractPreviewImage(“test.png”)

I get the error:

Message: ExtractPreviewImage() takes exactly 1 argument (2 given)

With

Message: ExtractPreviewImage()

I get the error

Message: ExtractPreviewImage() takes at least 1 argument (0 given)

Moved to Scripting category

Hi Mitch
This should be a bug. You can also use RhinoDoc.ExtractPreviewImage Method.

Thanks. Is there a way I make it a bug or is that something that is done when a developer notices this post?

Thanks for reporting the issue @mitch1.

https://mcneel.myjetbrains.com/youtrack/issue/RH-68443

– Dale