Re: How do I access another api using Ironpython and VS2017

St├ęphane Lozier
 

Looking at a SolidWorks.Interop.sldworks.dll that I found on NuGet, it seems like SldWorks and ModelDoc2 are interfaces and not instances so the first argument is expected to be an instance of the interface (e.g. swApp.SldWorks.ActivateDoc(instance)). There appears to be classes which implement these interfaces (SldWorksClass and ModelDoc2Class) so maybe you could try using those?

Here's a thread about a similar problem (with a different interop assemble): https://mail.python.org/pipermail/ironpython-users/2016-January/017599.html

Join users@ironpython.groups.io to automatically receive all group messages.