When a mate involves a ReferenceGeometry>Point the following exception is thrown:
************** Testo dell'eccezione **************
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Impossibile convertire in modo implicito il tipo 'System.Reflection.TypeInfo' in 'int'
in CallSite.Target(Closure , CallSite , Object )
in System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
in ChronoEngineAddin.ChModelExporter.GetLinkParameters(Feature& swMateFeature, LinkParams& link_params, MathTransform& roottrasf, Component2& assemblyofmates) in C:\workspace\chrono-solidworks\ChronoSolidworksAddIn\ChModelExporter.cs:riga 410
in ChronoEngineAddin.ChModelExporterCpp.ConvertMate(Feature& swMateFeature, MathTransform& roottrasf, Component2& assemblyofmates) in C:\workspace\chrono-solidworks\ChronoSolidworksAddIn\ChModelExporterCpp.cs:riga 198
in ChronoEngineAddin.ChModelExporter.TraverseFeaturesForLinks(Feature swFeat, Int64 nLevel, MathTransform& rootTransform, Component2& assemblyOfMates) in C:\workspace\chrono-solidworks\ChronoSolidworksAddIn\ChModelExporter.cs:riga 112
in ChronoEngineAddin.ChModelExporterCpp.ExportCpp() in C:\workspace\chrono-solidworks\ChronoSolidworksAddIn\ChModelExporterCpp.cs:riga 160
in ChronoEngineAddin.ChModelExporterCpp.Export() in C:\workspace\chrono-solidworks\ChronoSolidworksAddIn\ChModelExporterCpp.cs:riga 182
in ChronoEngine_SwAddin.SWTaskpaneHost.ExportClick(Object sender, EventArgs e) in C:\workspace\chrono-solidworks\ChronoSolidworksAddIn\SidePanel.cs:riga 137
in System.Windows.Forms.Control.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ButtonBase.WndProc(Message& m)
in System.Windows.Forms.Button.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
A valid workaround I found was to use ReferenceGeometry>CoordinateSystem instead of a Point. May be helpful for others if they need similar functionality until this is fixed.
When a mate involves a ReferenceGeometry>Point the following exception is thrown: