+ Reply to Thread
Results 1 to 3 of 3

Thread: rs.IsPolyLine return an error an not False

  1. #1

    rs.IsPolyLine return an error an not False

    Hi Steve
    The metod IsPolyline return:
    Message: unable to convert 9bbc88a1-c262-4052-9ed1-c40deec69dfb into Curve geometry

    Traceback:
    line 539, in coercecurve, "C:\Users\Angela\AppData\Roaming\McNeel\Rhinoceros \5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\utility.py"
    line 2281, in PolylineVertices, "C:\Users\Angela\AppData\Roaming\McNeel\Rhinoceros \5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\curve.py"
    line 34, in ar, "C:\Users\Angela\AppData\Roaming\McNeel\Rhinoceros \5.0\scripts\Breton\ProfiliParametrici.py"
    line 117, in <module>, "C:\Users\Angela\AppData\Roaming\McNeel\Rhinoceros \5.0\scripts\Breton\ProfiliParametrici.py"

    and not False
    Python Code:
      import rhinoscriptsyntax as rs
       
      obj = rs.GetObject("Select a polyline")
       
      if rs.IsPolyline(obj):
       
          print "The object is a polyline."
       
      else:
       
          print "The object is not a polyline."
    Ciao Vittorio

  2. #2
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    Hi Vittorio,
    Does this happen with all objects or a specific object? If it happens with a specific object, could you send me a model?
    Thanks,
    -Steve

  3. #3
    Hi Steve
    The error happens for all objects that are not curves.
    Ciao Vittorio

+ 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