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?
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.
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 .