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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Running out of thoughts here......

BrianKrieger
7-Bedrock

Running out of thoughts here......

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

0 REPLIES 0
Top Tags