Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Help with curve for Curve.CreateFilletCurves

$
0
0

@don wrote:

Hi,
I am trying to fillet some specified (not user selected) lines. I have a problem generating a “curve” reference, not a guid. This is based on the rhino common fillet example

Highlight of the problem is:

  1. Curve1Guid = rs.AddLine( pt1, pt2)
  2. curve1Obj = Rhino.DocObjects.ObjRef(Curve1Guid)
  3. curve1 = rs.coercecurve(Curve1Guid)
  4. curve1_point = rs.CurveMidPoint( Curve1Guid)
  5. (duplicate this for 2nd line)
  6. fillet_curve = Curve.CreateFilletCurves(Curve1Guid, curve1_point, Curve2Guid, curve2_point, Fradius,True, True, True, doc.ModelAbsoluteTolerance, doc.ModelAngleToleranceDegrees)
  • using 1st/3rd paramater of Curve1Guid => Message: expected Curve, got Guid
  • using 1st/3rd paramater of curve1Obj => Message: expected Curve, got ObjRef
  • using 1st/3rd paramater of curve1 => Message: expected Curve, got float

fillet lines.py (4.5 KB)

Thanks for any help,

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles