set BytesIO() instead of Path when export image

set BytesIO() instead of Path when export image

dyakovenko73GY8
Explorer Explorer
455 Views
1 Reply
Message 1 of 2

set BytesIO() instead of Path when export image

dyakovenko73GY8
Explorer
Explorer

Hey there everyone!

 

Is there a possible way to export image from viewport using the next pipeline

opts = DB.ImageExportOptions()
opts.FilePath = image_path

doc.ExportImage(opts)

 using BytesIO() object instead of string-type image path? I am trying to perform image post-process right inside the python script without having to write the file and re-opening it again.

 

Thanks in advance!

0 Likes
Accepted solutions (1)
456 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

Not as far as I know. Sorry about that. You can file a wish list item for it in the Revit Idea Station if it is very important for you.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes