cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How-to construct a ComponentPath with VB API

Highlighted
Level 8

How-to construct a ComponentPath with VB API

Hello,

 

From an Excel macro, I tried to create a ComponentPath with the VB API method

CMpfcAssembly.CreateComponentPath(topassy, sequence)

 

The sequence should be a sequence of Integers (according to API docs)

But I get an error when trying to construct an object of type Cintseq:

 

Dim sequence As Cintseq

Msgbox (CStr(sequence.Count))

 

The last line throws a Run-time error '48' - Error in loading DLL

In debug mode, the locals window in VBA shows that the 'sequence' is still set to Nothing instead of a valid object.

 

The VB API seems to be registered correctly, though, since I can connect to Creo and perform other manipulations on Creo objects.

And the Object Browser in VBA lists the Cintseq class correctly.

 

Anyone who can help me out on this ?