Problem to generate "global Contact" by API VB.NET

Hi,

I would like to run a static simulation which is controlled by API and VB.NET.

My actual problem is to define a "globalContact" to the entire model.

I tried following code:

Dim ContactMgr As CWContactManager

ContactMgr = Study.ContactManager

ContactMgr.SetGlobalContact(swsContactSetTypeStaticNonLinear_e.swsContactSetTypeStaticNonLinearBonded, swsMeshCompatibility_e.swsMeshCompatibilityCompatible)

The program runs without any errors but no Contact will be generated.

Thanks for help.

SolidworksApi macros