Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created June 9, 2020 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuongmep/0d3730f00a8a6eb640529e56db653831 to your computer and use it in GitHub Desktop.
Save chuongmep/0d3730f00a8a6eb640529e56db653831 to your computer and use it in GitHub Desktop.
import clr
clr.AddReference('ProtoGeometry')
import Autodesk.DesignScript.Geometry
a = IN[0]
if isinstance(a, list):
a = a
else: a = [a]
e = []
for i in a:
e.append(Autodesk.DesignScript.Geometry.Curve.Offset(i,0))
OUT = e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment