Hi Gianni,
the SolidWorks plugin had a bug that was not allowing running the 
simulation withing SolidWorks. You should now be able to get the new 
version and make it run in SolidWorks.

About the motor: please try to make it run directly from SolidWorks. I 
would recommend you to remove any link between the coupled items and let 
the Chrono motors to add both the motion constraint and the link constraint.

Dario

Il giorno lunedì 1 luglio 2024 alle 14:01:16 UTC+2 [email protected] ha 
scritto:

> Hi Dario,
>
>    - You can find the CMakeCache attached below. I am sending you both 
>    the one of the basic code for the import (CMakeCache_simple_import) from 
>    Solidworks and the one of the Particle_bed script 
> (CMakeCache_Particle_bed).
>    - This is what "Dettagli" returns from the Solidworks add-In (Sorry 
>    for the Italian language):
>
> Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché 
> questa finestra
> sono riportate in fondo al messaggio.
>
> ************** Testo dell'eccezione **************
> System.TypeInitializationException: L'inizializzatore di tipo di 
> 'chrono_irrlichtPINVOKE' ha generato un'eccezione. ---> 
> System.TypeInitializationException: L'inizializzatore di tipo di 
> 'SWIGExceptionHelper' ha generato un'eccezione. ---> 
> System.DllNotFoundException: Impossibile caricare la DLL 
> 'ChronoEngine_csharp_irrlicht': Impossibile trovare il modulo specificato. 
> (Eccezione da HRESULT: 0x8007007E).
>    in 
> chrono_irrlichtPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_chrono_irrlicht(ExceptionDelegate
>  
> applicationDelegate, ExceptionDelegate arithmeticDelegate, 
> ExceptionDelegate divideByZeroDelegate, ExceptionDelegate 
> indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, 
> ExceptionDelegate invalidOperationDelegate, ExceptionDelegate ioDelegate, 
> ExceptionDelegate nullReferenceDelegate, ExceptionDelegate 
> outOfMemoryDelegate, ExceptionDelegate overflowDelegate, ExceptionDelegate 
> systemExceptionDelegate)
>    in chrono_irrlichtPINVOKE.SWIGExceptionHelper..cctor() in 
> C:\WORKSPACE\chrono_9_build\chrono_csharp\merge\chrono_irrlichtPINVOKE.cs:riga
>  
> 117
>    --- Fine della traccia dello stack dell'eccezione interna ---
>    in chrono_irrlichtPINVOKE.SWIGExceptionHelper..ctor()
>    in chrono_irrlichtPINVOKE..cctor() in 
> C:\WORKSPACE\chrono_9_build\chrono_csharp\merge\chrono_irrlichtPINVOKE.cs:riga
>  
> 124
>    --- Fine della traccia dello stack dell'eccezione interna ---
>    in chrono_irrlichtPINVOKE.new_ChVisualSystemIrrlicht__SWIG_0()
>    in ChVisualSystemIrrlicht..ctor() in 
> C:\WORKSPACE\chrono_9_build\chrono_csharp\merge\ChVisualSystemIrrlicht.cs:riga
>  
> 38
>    in ChronoEngine_SwAddin.SWTaskpaneHost.but_runSimulation_Click(Object 
> sender, EventArgs e) in 
> C:\WORKSPACE\chrono-solidworks_source\ChronoSolidworksAddIn\SidePanel.cs:riga 
> 953
>    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)
>
>
> ************** Assembly caricati **************
> mscorlib
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9241.0 built by: NET481REL1LAST_C
>     Base di codice: 
> file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
> ----------------------------------------
> featurecplu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/featurecplu.DLL
> ----------------------------------------
> System
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9236.0 built by: NET481REL1LAST_B
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
> ----------------------------------------
> couplingBase
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/couplingBase.DLL
> ----------------------------------------
> CoreInterface
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/CoreInterface.DLL
> ----------------------------------------
> FeatureUI
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/FeatureUI.DLL
> ----------------------------------------
> FeatureWPF
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/FeatureWPF.DLL
> ----------------------------------------
> PresentationFramework
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9241.0
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
> ----------------------------------------
> WindowsBase
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9241.0 built by: NET481REL1LAST_C
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
> ----------------------------------------
> System.Core
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9241.0 built by: NET481REL1LAST_C
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
> ----------------------------------------
> PresentationCore
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9241.0 built by: NET481REL1LAST_C
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
> ----------------------------------------
> System.Xaml
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9241.0 built by: NET481REL1LAST_C
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
> ----------------------------------------
> WPFRes
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/WPFRes.DLL
> ----------------------------------------
> FeatureOperation
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/FeatureOperation.DLL
> ----------------------------------------
> Controls
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/Controls.DLL
> ----------------------------------------
> UiBase
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/UiBase.DLL
> ----------------------------------------
> CmdInterface
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/CmdInterface.DLL
> ----------------------------------------
> System.Configuration
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0 built by: NET481REL1
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
> ----------------------------------------
> System.Xml
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0 built by: NET481REL1
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
> ----------------------------------------
> PresentationFramework.Luna
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0 built by: NET481REL1
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Luna/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Luna.dll
> ----------------------------------------
> System.Deployment
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9176.0 built by: NET481REL1LAST_B
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
> ----------------------------------------
> System.Deployment.resources
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0 built by: NET481REL1
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment.resources/v4.0_4.0.0.0_it_b03f5f7f11d50a3a/System.Deployment.resources.dll
> ----------------------------------------
> DveSupport
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/DveSupport.DLL
> ----------------------------------------
> PresentationFramework.resources
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.resources/v4.0_4.0.0.0_it_31bf3856ad364e35/PresentationFramework.resources.dll
> ----------------------------------------
> PresentationFramework.Aero2
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0 built by: NET481REL1
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll
> ----------------------------------------
> clrloadu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/clrloadu.DLL
> ----------------------------------------
> annotationcplu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/annotationcplu.DLL
> ----------------------------------------
> AnnotationUI
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/AnnotationUI.DLL
> ----------------------------------------
> AnnotationWPF
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/AnnotationWPF.DLL
> ----------------------------------------
> AnnotationOperation
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/AnnotationOperation.DLL
> ----------------------------------------
> asmfeaturecplu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/asmfeaturecplu.DLL
> ----------------------------------------
> asmfeatureui
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/asmfeatureui.DLL
> ----------------------------------------
> asmfeaturewpf
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/asmfeaturewpf.DLL
> ----------------------------------------
> AsmFeatureOperation
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/AsmFeatureOperation.DLL
> ----------------------------------------
> contentcplu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/contentcplu.DLL
> ----------------------------------------
> ContentUI
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/ContentUI.DLL
> ----------------------------------------
> ContentOperation
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/ContentOperation.DLL
> ----------------------------------------
> refgeomcplu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/refgeomcplu.DLL
> ----------------------------------------
> RefGeomUI
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/RefGeomUI.DLL
> ----------------------------------------
> RefPlaneWPF
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/RefPlaneWPF.DLL
> ----------------------------------------
> RefGeomOperation
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/RefGeomOperation.DLL
> ----------------------------------------
> sheetmetalcplu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/sheetmetalcplu.DLL
> ----------------------------------------
> SheetMetalUi
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/SheetMetalUi.DLL
> ----------------------------------------
> SheetMetalWPF
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/SheetMetalWPF.DLL
> ----------------------------------------
> SheetMetalOperation
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/SheetMetalOperation.DLL
> ----------------------------------------
> Sketchcplu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/Sketchcplu.DLL
> ----------------------------------------
> SketchUI
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/SketchUI.DLL
> ----------------------------------------
> SketchWPF
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/SketchWPF.DLL
> ----------------------------------------
> SketchOperation
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/SketchOperation.DLL
> ----------------------------------------
> SWCLIWrapperMP
>     Versione assembly: 0.0.0.0
>     Versione Win32: 6,32,0,2035
>     Base di codice: 
> file:///C:/Program%20Files/Common%20Files/SOLIDWORKS%20Shared/3DEXPERIENCE%20Marketplace/SWCLIWrapperMP.dll
> ----------------------------------------
> SWX3DPartSupplyApiMP
>     Versione assembly: 6.32.0.2035
>     Versione Win32: 6.32.0.2035
>     Base di codice: 
> file:///C:/Program%20Files/Common%20Files/SOLIDWORKS%20Shared/3DEXPERIENCE%20Marketplace/SWX3DPartSupplyApiMP.dll
> ----------------------------------------
> System.Web.Extensions
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9232.0
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Extensions/v4.0_4.0.0.0__31bf3856ad364e35/System.Web.Extensions.dll
> ----------------------------------------
> Microsoft.CSharp
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
> ----------------------------------------
> System.Web
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9232.0 built by: NET481REL1LAST_C
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
> ----------------------------------------
> System.Drawing
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0 built by: NET481REL1
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
> ----------------------------------------
> System.Web.Extensions.resources
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Extensions.resources/v4.0_4.0.0.0_it_31bf3856ad364e35/System.Web.Extensions.resources.dll
> ----------------------------------------
> System.Dynamic
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
> ----------------------------------------
> Anonymously Hosted DynamicMethods Assembly
>     Versione assembly: 0.0.0.0
>     Versione Win32: 4.8.9241.0 built by: NET481REL1LAST_C
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
> ----------------------------------------
> SWX3DPrintUiMP
>     Versione assembly: 6.32.0.2035
>     Versione Win32: 6.32.0.2035
>     Base di codice: 
> file:///C:/Program%20Files/Common%20Files/SOLIDWORKS%20Shared/3DEXPERIENCE%20Marketplace/SWX3DPrintUiMP.dll
> ----------------------------------------
> SWX3DPartSupplyEventHandlerMP
>     Versione assembly: 6.32.0.2035
>     Versione Win32: 6.32.0.2035
>     Base di codice: 
> file:///C:/Program%20Files/Common%20Files/SOLIDWORKS%20Shared/3DEXPERIENCE%20Marketplace/SWX3DPartSupplyEventHandlerMP.DLL
> ----------------------------------------
> System.Windows.Forms
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9181.0 built by: NET481REL1LAST_C
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
> ----------------------------------------
> ChronoEngineAddIn
>     Versione assembly: 2.0.8.0
>     Versione Win32: 2.0.8.0
>     Base di codice: 
> file:///C:/Users/User/Documents/Chrono/Chrono-dependencies/ChronoSolidworks/ChronoEngineAddIn.DLL
> ----------------------------------------
> SWLoginClientCLR
>     Versione assembly: 1.0.8844.1615
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/SWLoginClientCLR.DLL
> ----------------------------------------
> loginManagerUtils
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/loginManagerUtils.DLL
> ----------------------------------------
> SolidworksLoginClient
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/SolidworksLoginClient.DLL
> ----------------------------------------
> loginManagerCore
>     Versione assembly: 32.2.0.115
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/loginManagerCore.DLL
> ----------------------------------------
> doccplu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/doccplu.DLL
> ----------------------------------------
> assemblycplu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/assemblycplu.DLL
> ----------------------------------------
> partcplu
>     Versione assembly: 32.2.0.0
>     Versione Win32: 32.2.0.0115
>     Base di codice: 
> file:///C:/Program%20Files/SOLIDWORKS%20Corp/SOLIDWORKS/partcplu.DLL
> ----------------------------------------
> Accessibility
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0 built by: NET481REL1
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
> ----------------------------------------
> System.Dynamic.DynamicAssembly
>     Versione assembly: 0.0.0.0
>     Versione Win32: 4.8.9032.0
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
> ----------------------------------------
> mscorlib.resources
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0 built by: NET481REL1
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
> ----------------------------------------
> System.Windows.Forms.resources
>     Versione assembly: 4.0.0.0
>     Versione Win32: 4.8.9032.0 built by: NET481REL1
>     Base di codice: 
> file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
> ----------------------------------------
>
> ************** Debug JIT **************
> Per abilitare il debug JIT, è necessario impostare il valore
> jitDebugging nella sezione system.windows.forms del file di configurazione
> dell'applicazione o del computer (machine.config).
> L'applicazione inoltre deve essere compilata con il debug
> abilitato.
>
> Ad esempio:
>
> <configuration>
>     <system.windows.forms jitDebugging="true" />
> </configuration>
>
> Quando il debug JIT è abilitato, tutte le eccezioni non gestite
> vengono inviate al debugger JIT registrato nel computer,
> anziché essere gestite da questa finestra di dialogo.
>
>    - I tried to add the motor directly in Chrono while commenting out the 
>    one generated by the SolidWorks add-In but nothing changed. I have also 
>    tried to leave the motor activated in both the Chrono code and the add-In 
>    and this is the only case in which I see a rotation. However, the motor 
>    goes crazy (i.e. it first oscillates, then it revolves really fast as it 
>    should while it vibrates in an unphysical way).
>
> Let me know if you need anything else and thanks again for the help.
>
> Gianni
> Il giorno lunedì 1 luglio 2024 alle 11:47:31 UTC+2 [email protected] ha 
> scritto:
>
>> Hi Gianni,
>>
>>    - can you please share the CMakeCache that is found in your build 
>>    folder?
>>    - what the "Dettagli" panel returns when the "Run simulation" button 
>>    is pressed?
>>    - can you please try to remove the motors in Solidworks and do them 
>>    manually in Chrono?
>>
>> There is something wrong, but it's difficult to tell what.
>>
>>
>> Il giorno domenica 30 giugno 2024 alle 16:07:37 UTC+2 [email protected] 
>> ha scritto:
>>
>>> [image: Screenshot 2024-06-30 145040.png]
>>> Buongiorno Dario,
>>> thank you again for your availability. At the beginning of the message 
>>> you can find a clearer image of my solidworks CAD:
>>>
>>> 1. I created "Sistema di coordinate 1" with the function *Reference 
>>> Geometry>Coordinate System*  by choosing the origin point of the 
>>> coordinate system of the "Engine" component. As shown in the image, it is 
>>> aligned with the global reference frame. The only offset is the fact that 
>>> it is shifted along the Z-axis with respect to where the two rotating faces 
>>> are in contact.
>>>
>>> 2. I implemented your suggestion but still "Arm" does not rotate. The 
>>> other constraints between "Engine" and "Arm" are the "Concentric" one and a 
>>> zero offset imposed along the z-axis. In this way, all the other degrees of 
>>> freedom with the exception of rotation around the Z-axis should be blocked. 
>>> I have also tried to comment these links and rerun the simulation, and the 
>>> arm detaches from the rest of the body as it should be.
>>>
>>> 3. I tried the "Run simulation" button and I got the error message 
>>> related to Irrlicht in the figure even though the compile run in MSVS 2022 
>>> does not show any problem.
>>>
>>> 4. I send you both the CMakeLists and the CPP code in case it helps. 
>>> Basically, they have been created by merging  the codes solid_import_cpp 
>>> and demo_MCORE_Cratering. Let me know if you need anything else.
>>>
>>> Gianni
>>> Il giorno domenica 30 giugno 2024 alle 12:27:57 UTC+2 
>>> [email protected] ha scritto:
>>>
>>>> Ciao Gianni,
>>>> motor frames are defined in SolidWorks through *Reference 
>>>> Geometry>Coordinate System* entities.
>>>> As any other link in Chrono, the Z axis of the Coordinate System is 
>>>> taken as the revolute axis. No additional change is made at the code level.
>>>>
>>>>    1. your "Sistema di coordinate", the one that you selected by 
>>>>    clicking on "Select Marker" where is placed exactly? I assume it should 
>>>> be 
>>>>    placed along the rotation axis, with the Z axis oriented in the proper 
>>>>    direction, but I don't see it.
>>>>    The one that you posted is not the motor marker and has an offset 
>>>>    with respect to the rotation axis that there shouldn't be
>>>>    2. I see that you selected "Motor guide constraint". This means 
>>>>    that the Chrono motor will add also the 5 constraints to avoid the two 
>>>>    pieces to move away one from the other.
>>>>    This is reasonable *only if you did not put any other Solidworks 
>>>>    link between 'engine' and 'arm'*. I recommend you to untick this 
>>>>    checkbox, link the two bodies through SolidWorks links and use the 
>>>> Chrono 
>>>>    motor only for the rotation degree of freedom.
>>>>    3. did you try to run the model directly in Solidworks through the 
>>>>    "Run simulation" button? At least you can check if the model is fine.
>>>>    4. the undefined command "ImportSolidworksSystemCpp" suggests that 
>>>>    something is wrong with your CMake: when you said that you "copy-pasted 
>>>> all 
>>>>    the headers and commands from the import template" did you also 
>>>> modified 
>>>>    your CMake script accordingly? Can you please share it?
>>>>
>>>> Dario
>>>>
>>>>
>>>>
>>>> Il giorno sabato 29 giugno 2024 alle 13:34:18 UTC+2 [email protected] 
>>>> ha scritto:
>>>>
>>>>> Good morning,
>>>>>
>>>>> my name is Gianni, a grad master student and I need Project Chrono to 
>>>>> perform analysis for my thesis.
>>>>> For my project, I need to import a CAD assembly from Solidworks, 
>>>>> assign to a rotating arm a predefined angular speed, and simulate its 
>>>>> interaction with a particle bed generated as shown in the code 
>>>>> "demo_MCORE_Cratering" with the Multicore module. For the simulation 
>>>>> visualization, I want to use OpenGL. Plus, I am currently using the 
>>>>> latest 
>>>>> versions of Chrono (v9.0) and Solidworks add-in (released in May 2024).
>>>>> Therefore, I have some questions regarding the Import procedure:
>>>>>
>>>>> 1) First, I tried the import procedure in Irrlicht following the 
>>>>> baseline template given by the SolidWorks add-in. I created a simple 
>>>>> motor 
>>>>> rotating at a constant rate directly with the Solidworks add-in, however, 
>>>>> even though the simulations runs smoothly without errors, the arm does 
>>>>> not 
>>>>> rotate. I applied the constraints in the assembly in order to leave the 
>>>>> rotating arm as the only degree of freedom (i.e. I blocked all the other 
>>>>> rotations for the other components).
>>>>> I leave this image as reference:
>>>>> [image: Screenshot 2024-06-29 131735.png]
>>>>> All the bodies share the same reference system which coincides with 
>>>>> the global one. The blue element in the figure is the one which should 
>>>>> rotate about the Z-axis. The "Engine" component is the grey cylinder 
>>>>> attached to the arm. 
>>>>>
>>>>> This is the output of the conversion in C++ for the motor.
>>>>> [image: Screenshot 2024-06-29 132300.png]
>>>>>
>>>>> 2) Furthermore, when I tried to import the CAD in the Multicore 
>>>>> environment, I get the error that the command "ImportSolidworksSystemCpp" 
>>>>> is not defined. This happens even though I copy-pasted all the headers 
>>>>> and 
>>>>> commands from the import template. Could you please help me?
>>>>>
>>>>> Thank you in advance for your help!
>>>>>
>>>>> Gianni
>>>>>
>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/a7e4d726-e526-4e08-b20f-c7dbd61f73e7n%40googlegroups.com.

Reply via email to