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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Translate the entire conversation x

Running out of thoughts here......

BrianKrieger
10-Marble

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
Announcements

Top Tags