If I’m not mistaken and from what I read here in the forum, there is no method of blocking a 3dm file by password,
Ok, I need to lock a file, so I thought of a method to do it, (I just need to block a file when using my plugin)
The principle is very basic:
1ºCreate a SetDocumentData “password” with the “password chosen”
2º On “RhinoDoc.EndOpenDocument” check the SetDocumentData “password”
if password match then open document, if not match close document
Although it is a very corny method, it works and does not let open any document that has password.
I make some testes, and the problem is open by the spash screen on rhino startup, it seems to me that when opened here events “RhinoDoc.EndOpenDocument” are ignored.
or something is escaping here.