How to get the preview image of the model front view?

3 Answers

3

The GetPreviewBitmapFile method obtains the axonometric drawing.

You can use ModelDoc2.SaveBMP should save the current view window. You will have to orient/zoom/pan the model to dial in the results. You can also use ModelDocExtension.SaveAs3.

FWIW I'd be surprised if the previews of the view orientation UI in your example are exposed in the API directly.

Thank you, I haven’t found an API to preview the front view directly, so I can only use SaveBMP for now.