AnsweredAssumed Answered

C# add-in and OptisWorks Studio

Question asked by Louis Bouchard on Aug 8, 2013
Latest reply on Aug 9, 2013 by Louis Bouchard



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 );