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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How-to construct a ComponentPath with VB API

TomDecock
12-Amethyst

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 ?


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Top Tags