Import 3dm to point

Is it possible to set the x,y,z of an importing 3dm using this?

string script = string.Format("_-Import “{0}” _Enter", path);
Rhino.RhinoApp.RunScript(script, true);


the _Insert command allows to define an insertion point among other things:

import Rhino
import rhinoscriptsyntax as rs

def InsertFile():
    # insert options
    file = chr(34) + r"D:\Temp\Box.3dm" + chr(34)
    point = Rhino.Geometry.Point3d(10, 10, 0)
    scale = 1.0
    rotation = 0.0
    # command
    cmd = "_-Insert _File=Yes _LinkMode=_Embed {} ".format(file)
    cmd += "Objects _Enter {0} {1} {2}".format(point, scale, rotation)
    rc = rs.Command(cmd, False)

Does that help ?


1 Like

Yes, just pick the Points (*.asc; *.csv; *.txt; *.xyz) file type in Import file dialog box.