JLink: Creo 3: M150: RetrieveSymbolDefinition fails to load sym file located in user's ptc/creo3 dir
Hello;
I am writing a Jlink app for our ME team to place informational custom (aka User) symbols on Drawing2Ds.
The app jarfile and the symbol file are both installed into the users ptc/creo3/ directory:
05/07/2020 11:18 AM <DIR> .
05/07/2020 11:18 AM <DIR> ..
04/01/2020 04:46 PM 27 config.pro
05/07/2020 11:20 AM 14,559 autoplacer.jar
05/06/2020 10:24 AM 4,343 autoplace_test.sym
the code in the jar file uses RetrieveSymbolDefinition() to load the DetailSymbolDefItm
DetailSymbolDefItem DefItm =
prts_dwg.RetrieveSymbolDefinition("autoplace_test", null, null, null);
The good news is that it finds the symfile.
The bad news is that it fails to load it and tosses an XToolkitFound exception.
The stack looks like this:
com.ptc.pfc.Implementation.pfcExceptions$XToolkitFound
at com.ptc.pfc.Implementation.PFCRemoteCommImpl.makeObject(PFCRemoteCommImpl.java:2144)
at com.ptc.cipjava.NativeTransport.recvObject(NativeTransport.java:115)
at com.ptc.cipjava.CIPRemoteComm.processMessages(CIPRemoteComm.java:153)
at com.ptc.pfc.Implementation.pfcDrawing$Drawing.RetrieveSymbolDefinition(pfcDrawing.java:712)
at bobco.me.dimid.WorkerAutoPlacer.SymbolCreate(WorkerAutoPlacer.java:604)

