AlistairFrith

Create Multistate separate from any symbol

Discussion created by AlistairFrith on Sep 23, 2010
Latest reply on Mar 28, 2011 by Bannikov

Hi all,

 

 

 

I am working on a C# .NET addin to Processbook.

 

I need to create a multi-state symbol where the user has the chance to set the multistate attributes before the symbol is created. The only way I can see of getting a Multistate object is with symbol.CreateMultistate and Symbol.GetMultistate.

 

If I do

 

PBObjLib.MultiState ms = new PBObjLib.MultiState();

 

I get a COM error:

 

Retrieving the COM class factory for component with CLSID {A481D570-0262-11D3-9E5E-00C04F53FF0D} failed due to the following error: 80040154.

 

The only solution I can see is to create a temporary symbol on the display and then call its CreateMultistate() method. This is clunky in the extreme!

 

Is there another way?

 

--- Alistair.

Outcomes