{"action":"created","issue":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3477","labels_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3477/labels{/name}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3477/comments","events_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3477/events","html_url":"https://github.com/DynamoDS/Dynamo/issues/3477","id":53005552,"number":3477,"title":"PolyCurves in Dynamo...more questions.","user":{"login":"ksobon","id":529781,"avatar_url":"https://avatars.githubusercontent.com/u/529781?v=3","gravatar_id":"","url":"https://api.github.com/users/ksobon","html_url":"https://github.com/ksobon","followers_url":"https://api.github.com/users/ksobon/followers","following_url":"https://api.github.com/users/ksobon/following{/other_user}","gists_url":"https://api.github.com/users/ksobon/gists{/gist_id}","starred_url":"https://api.github.com/users/ksobon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksobon/subscriptions","organizations_url":"https://api.github.com/users/ksobon/orgs","repos_url":"https://api.github.com/users/ksobon/repos","events_url":"https://api.github.com/users/ksobon/events{/privacy}","received_events_url":"https://api.github.com/users/ksobon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-28T17:45:45Z","updated_at":"2015-01-13T22:49:07Z","closed_at":null,"body":"@hlp @holyjewsus @pboyer @kronz I hope everyone is having wonderful holidays. \r\n\r\nThis is just a quick question about behavior that i am experiencing with PolyCurves. Here's an issue: When a NurbsCurve is being queried for Weights it returns a list of weight values all equal to one (1). However, if the same NurbsCurve is being added to PolyCurve, then extracted using Curves() method and converted back ToNurbsCurve() (Curves() returns a list of generic Curve objects so to get back that original NurbsCurve i had to use ToNurbsCurve() method), when queried for Weights it will return a list of weight values equal to zero (0)...somewhere in the process weights all get reset to 0. Is that intentional? \r\n\r\n![capture](https://cloud.githubusercontent.com/assets/529781/5564443/380a74cc-8e8f-11e4-94fd-4db86c0eff84.PNG)\r\n\r\nHere's the Python code that does conversion of Curves back to Arcs, Nurbs etc. \r\n\r\n```Python\r\ndef tryGetLine(item):\r\n\tstartPoint = item.StartPoint\r\n\tendPoint = item.EndPoint\r\n\tdistance = startPoint.DistanceTo(endPoint)\r\n\tif round(item.Length, 4) == round(distance, 4):\r\n\t\treturn Line.ByStartPointEndPoint(startPoint, endPoint)\r\n\telse:\r\n\t\treturn None\r\ndef tryGetArc(item):\r\n\tstartPoint = item.StartPoint\r\n\tendPoint = item.EndPoint\r\n\ttangent = item.TangentAtParameter(0)\r\n\tdsArc = Arc.ByStartPointEndPointStartTangent(startPoint, endPoint, tangent)\r\n\tif round(dsArc.Length, 4) == round(item.Length, 4):\r\n\t\treturn dsArc\r\n\telse:\r\n\t\treturn None\r\n\r\ntest = []\r\nfor i in dsObjects:\r\n\tfor i in i.Curves():\r\n\t\tif tryGetLine(i) != None:\r\n\t\t\ttest.append(tryGetLine(i))\r\n\t\telif tryGetArc(i) != None:\r\n\t\t\ttest.append(tryGetArc(i))\r\n\t\telse:\r\n\t\t\ttest.append(i.ToNurbsCurve())\r\nOUT = test"},"comment":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/comments/69836789","html_url":"https://github.com/DynamoDS/Dynamo/issues/3477#issuecomment-69836789","issue_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3477","id":69836789,"user":{"login":"hlp","id":289141,"avatar_url":"https://avatars.githubusercontent.com/u/289141?v=3","gravatar_id":"","url":"https://api.github.com/users/hlp","html_url":"https://github.com/hlp","followers_url":"https://api.github.com/users/hlp/followers","following_url":"https://api.github.com/users/hlp/following{/other_user}","gists_url":"https://api.github.com/users/hlp/gists{/gist_id}","starred_url":"https://api.github.com/users/hlp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlp/subscriptions","organizations_url":"https://api.github.com/users/hlp/orgs","repos_url":"https://api.github.com/users/hlp/repos","events_url":"https://api.github.com/users/hlp/events{/privacy}","received_events_url":"https://api.github.com/users/hlp/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T22:49:07Z","updated_at":"2015-01-13T22:49:07Z","body":"Hi @ksobon, you are correct, we re-weight the NurbsCurve when it is passed into the PolyCurve. Your use case has been logged, but I can't comment on when this behavior will be changed."}}