Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8524

BeginSaveDocument Firing Multiple Times

$
0
0

@mpcarlos87 wrote:

Hi,

I’m doing some research to save my custom plugin data before Rhino saves the 3dm file and I noticed that the event BeginSaveDocument and some overrided methods are being fired 2 times when doing a CopyToClipboard (CTRL + C) command and only 1 time when calling a SaveAs command. Here’s my command line output putting a Writeline into each event/override:

Command: '_CopyToClipboard
RhinoDocBeginSaveDocument
ShouldCallWriteDocument
RhinoDocBeginSaveDocument
ShouldCallWriteDocument

Command: _SaveAs
RhinoDocBeginSaveDocument
ShouldCallWriteDocument

Maybe other methods are being also affected since I didn’t check all events/inherited methods from the Plugin class.

Regards,

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8524

Trending Articles