# rs.AddBlock always uses the Origin as base\_point

**URL:** <https://discourse.mcneel.com/t/rs-addblock-always-uses-the-origin-as-base-point/123636>\
**Category:** Scripting\
**Tags:** windows\
**Created:** [May 4, 2021, 6:03pm UTC](https://discourse.mcneel.com/t/rs-addblock-always-uses-the-origin-as-base-point/123636 "2021-05-04T18:03:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincentfs](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/vincentfs/32/496894_2.png) [@vincentfs](https://discourse.mcneel.com/u/vincentfs)\
**Post date:** [May 4, 2021, 6:03pm UTC](https://discourse.mcneel.com/t/rs-addblock-always-uses-the-origin-as-base-point/123636/1 "2021-05-04T18:03:13Z")

</div>

Hi there,

I was trying to do the following:

> block = rs.AddBlock([obj], pt, str(obj), False)  
> rs.InsertBlock(block, pt)

where pt is the base point I want to keep, but the result always uses the Origin as the base point for blockinstance, and the inserted block will not be at the same place as the original object.

Is this a known bug or am I missing something? I am working on (7.5.21100.3001, 2021-04-10).

Best,  
Vincent

---

<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:** [May 5, 2021, 12:04am UTC](https://discourse.mcneel.com/t/rs-addblock-always-uses-the-origin-as-base-point/123636/2 "2021-05-05T00:04:35Z")

</div>

Hi @vincentfs,

This seems to work:

```auto
import rhinoscriptsyntax as rs

def test_block():
    
    rect = rs.GetRectangle()
    if not rect:
        return
    
    pt = rect[0]
    rs.AddPoint(pt)
    
    points = list(rect)
    points.append(pt)
    rect = tuple(points)
    
    id = rs.AddPolyline(rect)
    
    blk = rs.AddBlock([id], pt, 'test_block', True)
    rs.InsertBlock(blk, pt)
    
test_block()

```

What am I missing?

– Dale

---

<div class="post-metadata">

**Author:** ![vincentfs](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/vincentfs/32/496894_2.png) [@vincentfs](https://discourse.mcneel.com/u/vincentfs)\
**Post date:** [May 5, 2021, 3:50am UTC](https://discourse.mcneel.com/t/rs-addblock-always-uses-the-origin-as-base-point/123636/3 "2021-05-05T03:50:16Z")

</div>

Hi @dale ,

I think I found the problem here. When you run the script once, the rhino python definition for `AddBlock` will do:

> rc = scriptcontext.doc.InstanceDefinitions.Add(name, “”, base\_point, geometry, attrs)

which passes in the base\_point correctly.

But when you run the script again, since the block already exists, it will do:

> rc = scriptcontext.doc.InstanceDefinitions.ModifyGeometry(found.Index, geometry, attrs)

which completely ignores the base\_point.

So is there a way to modify the base\_point for an existing block through script? Or I will have to reimplement the `AddBlock` to make it work.

Best,  
Vincent

---

<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:** [May 5, 2021, 11:49pm UTC](https://discourse.mcneel.com/t/rs-addblock-always-uses-the-origin-as-base-point/123636/4 "2021-05-05T23:49:13Z")

</div>

Hi @vincentfs,

RhinoCommon doesn’t have a method that will modify the insertion point of an instance definition. I’ve added an item to the wish list for this.

[https://mcneel.myjetbrains.com/youtrack/issue/RH-64102](https://mcneel.myjetbrains.com/youtrack/issue/RH-64102)

– Dale

---

<div class="post-metadata">

**Author:** ![vincentfs](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/vincentfs/32/496894_2.png) [@vincentfs](https://discourse.mcneel.com/u/vincentfs)\
**Post date:** [May 6, 2021, 2:32am UTC](https://discourse.mcneel.com/t/rs-addblock-always-uses-the-origin-as-base-point/123636/5 "2021-05-06T02:32:37Z")

</div>

Great. Thank you.

---

<div class="post-metadata">

**Author:** ![brian](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brian/32/504171_2.png) [@brian](https://discourse.mcneel.com/u/brian)\
**Post date:** [July 21, 2026, 10:10pm UTC](https://discourse.mcneel.com/t/rs-addblock-always-uses-the-origin-as-base-point/123636/6 "2026-07-21T22:10:41Z")

</div>

[RH-64102](https://mcneel.myjetbrains.com/youtrack/issue/RH-64102) is fixed in Rhino [BETA](https://discourse.mcneel.com/t/welcome-to-serengeti/9612)
