Fix error The number of control points must be the same as the number… #111
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Wrong parameter was set here. It should be null if the spline has no weights.
CADability/CADability/ExportDxf.cs
Lines 170 to 173 in 0117f6f
Fix the error:
Exception Source: CADability
Exception Type: System.ArgumentException
Exception Message: The number of control points must be the same as the number of weights.
Parametername: weights
Exception Target Site: .ctor
---- Stack Trace ----
netDxf.Entities.Spline..ctor(controlPoints As IEnumerable
1, weights As IEnumerable
1, knots As IEnumerable1, degree As Int16, fitPoints As IEnumerable
1, method As SplineCreationMethod, closedPeriodic As Boolean)Spline.cs: line 0286, col 17
netDxf.Entities.Spline..ctor(controlPoints As IEnumerable
1, weigths As IEnumerable
1, knots As IEnumerable`1, degree As Int16, closedPeriodic As Boolean)Spline.cs: line 0220, col 15
CADability.DXF.Export.ExportBSpline(bspline As BSpline)
ExportDxf.cs: line 0173, col 17
CADability.DXF.Export.GeoObjectToEntity(geoObject As IGeoObject)
ExportDxf.cs: line 0053, col 49
CADability.DXF.Export.WriteToFile(toExport As Project, filename As String)
ExportDxf.cs: line 0038, col 17
CADability.Project.Export(fileName As String, format As String)
Project.cs: line 1210, col 21
LogiCal.WiCamExportHelper.SaveCadDrawing(pos As Position, filename As String)
WiCamExportHelper.cs: line 0445, col 17
LogiCal.WiCamExportHelper.ProcessPosition(keepOrigFileName As Boolean, PosCount As Int32&, sb As StringBuilder, pos As Position)
WiCamExportHelper.cs: line 0366, col 25
LogiCal.WiCamExportHelper.FillCsvDetailsPart(keepOrigFileName As Boolean)
WiCamExportHelper.cs: line 0283, col 35
LogiCal.WiCamExportHelper.FillCsvContent(keepOrigFileName As Boolean)
WiCamExportHelper.cs: line 0210, col 13
LogiCal.WiCamExportHelper.MakeCsv(csvFile As String, keepOrigFileName As Boolean, saveCsv As Boolean)
WiCamExportHelper.cs: line 0107, col 13
LogiCal.WiCamExportHelper.ExportToWiCam(outputPath As String, keepOrigFileName As Boolean, saveCsv As Boolean)
WiCamExportHelper.cs: line 0090, col 17
LogiCal.MainForms.Orders.<>c__DisplayClass720_0.<bbiExportWiCam_ItemClick>b__0()
frmAuftrag.cs: line 4175, col 21
System.Threading.ExecutionContext.RunInternal(executionContext As ExecutionContext, callback As ContextCallback, state As Object, preserveSyncCtx As Boolean)
: N 00370
System.Threading.ExecutionContext.Run(executionContext As ExecutionContext, callback As ContextCallback, state As Object, preserveSyncCtx As Boolean)
: N 00021
System.Threading.ExecutionContext.Run(executionContext As ExecutionContext, callback As ContextCallback, state As Object)
: N 00085
System.Threading.ThreadHelper.ThreadStart()
: N 00085