RhinoDoc.Import() Method arguments error

Hello

DOC:
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_RhinoDoc_Import.htm

public bool Import(
string filePath
)

My code:
RhinoDoc.Import(path)

Error:
Message: Import() takes exactly 2 arguments (1 given)

why?
I do not understand.

quote=“Shitong Li, post:1, topic:144549, username:lishitong12”]
RhinoDoc.Import(path)
[/quote]

this should be:

doc.Import(path)

Where doc is the document you want to import into.

For example:

import scriptcontext
scriptcontext.doc.Import("/Users/Dale/Downloads/Test.3dm")
scriptcontext.doc.Views.Redraw()

– Dale

1 Like

Thank you, Dale.

It worked.