So I'm running into an unimplemented method error while in Diagram (yes,
I know it's dead). My method is pretty simple:
try {
Session myCurSession =
pfcGlobal.GetProESession();
Model curModel =
myCurSession.GetCurrentModel();
if(curModel.GetType()==ModelType.MDL_DIAGRAM){
Diagram curDiagram =
(Diagram)curModel;
ModelItems allSyms =
curDiagram.ListItems(ModelItemType.ITEM_DTL_SYM_INSTANCE);
I've even tried directly on the model object (curModel above) and tried
passing "null", but keep getting:
com.ptc.pfc.Implementation.pfcExceptions$XUnimplemented
Which, if I am reading it correctly, means it didn't implement that
method from the interface (or, rather, their implementation throws that
pfcException). So does anyone......
A) Know how to generate a list of the symbols used in a Diagram
using JLink (to then interrogate parameters, etc.)?
B) Need to correct me on the implementation assumption?
C) Is there really any functionality in Diagram accessible via
JLink?
Thanks!
Brian Krieger
Peterbilt Motors