Dear Tristan,

there are two sources of troubles here:

- about the "AddVisualShape " stuff: the latest version of the SolidWorks plugin might not be in-sync with the latest PyChrono that you download with Anaconda / Conda, even if the develop one, that is made available on conda only periodically.  For example, here on my PC I  bypass Anaconda completely and I build the chrono Python modules from the C++ solution, with CMAKE,  SWIG and C++ compile etc etc., and I set a PYTHONPATH to my D:\build\chrono\bin\Release. Not easy for people not into c++, though... So I am 100% sure it is in-sync with the SW add-in. The latest SW add-in v.7.03 is compatible with the develop branch of chrono, at least with the one in chrono' GIThub yesterday, in develop. (Note, I am in charge of developing the SW add-in, so I update and rebuild the add-in all times that chrono, hence pychrono, get some changes in the develop branch)

- about the .NET crash: most likely you are adding something in your SW model that is not supported in the add-in. In the past I had crashes when I added the gears constraints and the pulley constraints in SW. I remember that all the "basic" mate constraints in SW are correctly converted (parallel, cylindrical, etc.), but not the complex ones like gears, pulley, cam, etc.

regards

Alessandro Tasora

On 05/07/2022 21:37, Tristan Griffith wrote:
Dear all,

I am currently trying to utilize a Solidworks assembly in PyChrono for my project. When I use the plugin in Solidworks I am met with a Microsoft .NET Framework error, which is included below. I believe this is due to the specific assembly having constraints/mates that cannot be converted by the plugin. I am unsure which constraints/mates are causing this error, so my plan is to simplify the assembly and keep trying to convert it. I will add on the levels of complexity until I reach the specific one causing the error.

In the meantime, I made another extremely simple assembly with a single mate in which rotation is supposed to take place. The plugin converted the assembly into a python file successfully, however it throws an error when it runs. The error is included below as well. For some reason, it cannot find the function .AddVisualShape for the ChBodyAuxRef body_1, even though it should be included.


--
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/11320f90-64cb-4329-9111-203533b91fc7n%40googlegroups.com <https://groups.google.com/d/msgid/projectchrono/11320f90-64cb-4329-9111-203533b91fc7n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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/4c6bb832-3cec-80a2-302b-909b8620bad1%40ied.unipr.it.

Reply via email to