Screen Capture All Viewports


#1

Screen Capture All Viewports

Please C# code


(Nathan 'jesterKing' Letwory) #2

Create a command, in its implementation:

  • iterate over doc.Views
    ** set as active view
    ** run command _ViewCaptureToFile with appropriate settings

#4

hi jesterKing

Please tell me a little bit more in detail about that.


(Nathan 'jesterKing' Letwory) #5

Example accessing views: https://github.com/mcneel/rhino-developer-samples/blob/6/rhinocommon/cs/SampleCsCommands/SampleCsPrintViewList.cs

Example view capture: https://github.com/mcneel/rhino-developer-samples/blob/6/rhinocommon/cs/SampleCsCommands/SampleCsViewCapture.cs


#6

var view = doc.Views.ActiveView;
if (null == view)
return Result.Failure;

Is this part?


(Nathan 'jesterKing' Letwory) #7

If you are not yet familiar with C# you could go through some tutorials first. Here a random selection of sites offering tutorials on C#:

https://en.wikibooks.org/wiki/C_Sharp_Programming

http://csharp.net-tutorials.com/

https://www.tutorialspoint.com/csharp/


#8

I’m struggling with English.

but Screen Capture All Viewport is
I use it at work…