Detect import vs open file?

Hello.
Does Rhino provide ability detect when a file being imported vs being opened?

I’m using Rhino.RhinoDoc.EndOpenDocument but it seems it fires whether file is opened or imported…

Thank you.

Hi @vano_artful,

you might get the info from the EndOpenDocument event args using something like below:

if args.Merge == True: print "Imported from file: {}".format(args.FileName)

does that help ?

_

c.