+ Reply to Thread
Results 1 to 3 of 3

Thread: Sweep1 Polyline Problem

  1. #1

    Sweep1 Polyline Problem

    Hi All,
    I am attempting to use a sweep1 command to sweep a profile along a polyline. However I keep getting a "iteration over non-sequence of type Guid" error message. I have simplified the sweep command to the following and am still getting an error message:

    import rhinoscriptsyntax as rs

    Code:
    Pts=rs.GetObjects("Select Points",rs.filter.point)
    Sort=rs.SortPointList(Pts)
    PlyLn=rs.AddPolyline(Sort)
    Profile=rs.GetObject("Select Profile to Sweep")
    rs.AddSweep1(PlyLn,Profile)
    Am I doing something wrong or is the sweep command not currently functioning as intended? When I use the sweep1 command through rhino selecting the same profile and polyline the sweep works fine. Any help would be greatly appreciated.
    Pete
    Attached Files

  2. #2
    you need to supply a list of profiles to the AddSweep function:
    Code:
    rs.AddSweep1(PlyLn,[Profile])
    does this work for you ?

  3. #3
    Yes, thank you. I guess I didn't realize I needed to make a list if there was a single profile.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts