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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

pfcExeptions::XToolkitObsoleteFunc in VBA API with Creo 10

SKerski
3-Newcomer

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 

SKerski
3-Newcomer
(To:VladimirN)

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.

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