C# add-in and OptisWorks Studio

Hi,

I don't know if this is the best place to ask about OptisWorks' API, but Optis doesn't have any user forums that I know of.

In order to do anything, I have to obtain an OptisWorksInstance.  Their user guide indicates the following VB code to achieve this:

Set Catalog = CreateObject("OptisWorksCatalog.Catalog")

Set Instance = Catalog.Find(ModelDoc)

Set PartPreferences=Instance.GetPartPreferences()

... which I have translated in C#:

OptisWorksCatalog catalog = null;

OptisWorksInstance instance = null;

catalog = new OptisWorksCatalog();

instance = (OptisWorksInstance) catalog.Find( swApp.ActiveDoc );



SolidworksApi macros