PDA

View Full Version : Wish: AddCylinder and Pipe functions



Dan_K
08-28-2010, 01:18 AM
Hi Steve,

Could we have a "Pipe: and an "AddCylinder" rhinosctiptsystax functions?

Thanks in advance

Dan

Steve Baer
08-30-2010, 05:41 PM
Hi Dan,
I'm working on this now. There should be an AddCylinder function with a cap option in the next WIP.
Thanks,
-Steve

Steve Baer
08-30-2010, 05:52 PM
Done - you can get source for this at
http://code.google.com/p/rhinopython/source/browse/trunk/scripts/rhinoscript/surface.py
if you want AddCylinder before the next WIP.

Thanks,
-Steve

Dan_K
08-30-2010, 08:02 PM
Thanks Steve,

But when I try:
import rhinoscriptsyntax as rs

base = 0,0,0
height = 0,5,0

rs.AddCylinder(base, height, .5,)

I get:
Message: unsupported operand type(s) for -: 'tuple' and 'Point3d'

Traceback (most recent call last):
line 105, in AddCylinder, "C:\Documents and Settings\kimberling\Application Data\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\surface.py"

Steve Baer
08-30-2010, 08:10 PM
I see it. I just committed a fix for this on the google code site.
http://code.google.com/p/rhinopython/source/browse/trunk/scripts/rhinoscript/surface.py

Dan_K
08-30-2010, 08:34 PM
Super!
Works now. Thanks again.

Dan