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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

pfcExeptions::XToolkitObsoleteFunc in VBA API with Creo 10

SKerski
3-Visitor

pfcExeptions::XToolkitObsoleteFunc in VBA API with Creo 10

Hey guys,

 

Im currently testing a VBA Code from a college, that was written for Creo 4. In one part, it uses the method IpfcParameter.GetDriverType(). It worked fine in Creo 4, but now with Creo 10, it gives the Runtime Error '-2147352567 (80020009)': pfcExeptions::XToolkitObsoleteFunc.

 

The method is still present in the VB API User’s Guide 10.0.0.0, so I dont know why it should be obsolete. Is there a workaround to get the value otherwise?

3 REPLIES 3
VladimirN
24-Ruby II
(To:SKerski)

Take a look solution here - "XToolkitObsoleteFunc with C++ otk in Creo 9.0.0.0 for pfcComponentFeat::GetModelDescr()": https://community.ptc.com/t5/Customization/XToolkitObsoleteFunc-with-C-otk-in-Creo-9-0-0-0-for/td-p/816166 

Thanks for the hint Vladimir. Does "get the Creo 9.0 sources" mean, selecting the new library in the references list? If so, can you tell me the path of the library? It isnt showing in the list.

HannesBuxbaum
6-Contributor
(To:SKerski)

VBA Code needs the Creo VB API Type Lybrary referenced. Try adding/updating to the current <Creo Installation Directory>\Common Files\x86e_win64\obj\pfclscom.exe .

Announcements


Top Tags