# Import 3dm to point

**URL:** <https://discourse.mcneel.com/t/import-3dm-to-point/46022>\
**Category:** Scripting\
**Created:** [July 24, 2017, 5:35pm UTC](https://discourse.mcneel.com/t/import-3dm-to-point/46022 "2017-07-24T17:35:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogueCmdr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/roguecmdr/32/64466_2.png) [@RogueCmdr](https://discourse.mcneel.com/u/RogueCmdr)\
**Post date:** [July 24, 2017, 5:35pm UTC](https://discourse.mcneel.com/t/import-3dm-to-point/46022/1 "2017-07-24T17:35:11Z")

</div>

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);

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/772979_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [July 24, 2017, 6:56pm UTC](https://discourse.mcneel.com/t/import-3dm-to-point/46022/2 "2017-07-24T18:56:47Z")

</div>

@RogueCmdr,

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

```python
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)
    
InsertFile()

```

Does that help ?

- 

c.

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/772741_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [July 24, 2017, 9:42pm UTC](https://discourse.mcneel.com/t/import-3dm-to-point/46022/3 "2017-07-24T21:42:44Z")

</div>

> [@RogueCmdr](#):
>
> Is it possible to set the x,y,z of an importing 3dm using this?

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