Rhino Python - GUID object attribute error

ghpython
python

(Harinipa) #1

I am trying to set up a python script that would let me incrementally rotate geometry on a rotary table to be used with a robotic arm. There’s a screenshot of the script attached as in grasshopper. I get an error message that says: “Runtime error (MissingMemberException): ‘Guid’ object has no attribute ‘DuplicateCurve’
Traceback:
line 5, in script”

Please help!!


(Lando Schumpich) #2

Right-click on the ‘ln’ input of you ghpython node and set the type hint


(Harinipa) #3

What would I set the type hint to? I tried setting it to line but that didn’t do it.


(Lando Schumpich) #4

If I remember correctly lines and curves are different categories of rhino geometry so if you want to use a curve function the type hint would need to be curve. I’ll be back from work in 30 minutes and have a look


(Harinipa) #5

Thank you! The mistake I was making was that I used a line component and a curve type hint. It works now!!