# How to offset a polysurface in grasshopper use python script

**URL:** <https://discourse.mcneel.com/t/how-to-offset-a-polysurface-in-grasshopper-use-python-script/60446>\
**Category:** Grasshopper\
**Created:** [April 13, 2018, 9:10pm UTC](https://discourse.mcneel.com/t/how-to-offset-a-polysurface-in-grasshopper-use-python-script/60446 "2018-04-13T21:10:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![otakutarou](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/otakutarou/32/94142_2.png) [@otakutarou](https://discourse.mcneel.com/u/otakutarou)\
**Post date:** [April 13, 2018, 9:10pm UTC](https://discourse.mcneel.com/t/how-to-offset-a-polysurface-in-grasshopper-use-python-script/60446/1 "2018-04-13T21:10:33Z")

</div>

I try it in this simple way:

import Rhino  
#brepin = polysurface input  
#dist = distance input

a = Rhino.OffsetBrep(brepin,dist,0.001,bothSides,Solid)

But it returns an error "Runtime error (MissingMemberException): attribute ‘OffsetBrep’ of ‘namespace#’ object is read-only“

I have no idea what’s happening,  
Does anyone know what’s going on here? Could you please help me?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![qythium](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/qythium/32/84125_2.png) [@qythium](https://discourse.mcneel.com/u/qythium)\
**Post date:** [April 14, 2018, 1:14am UTC](https://discourse.mcneel.com/t/how-to-offset-a-polysurface-in-grasshopper-use-python-script/60446/2 "2018-04-14T01:14:36Z")

</div>

`"X attribute of namespace# is read-only"` is IronPython’s cryptic way of saying there is no such attribute in the namespace - probably you are looking for [`Rhino.Geometry.Brep.CreateOffsetBrep`](http://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Brep_CreateOffsetBrep.htm)?
