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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Java Tool not works in new Session

ddhini
14-Alexandrite

Java Tool not works in new Session

I am involved a GUI in a proE session.When i open a new ProE then the tool working fine.But at the same time if i open a new part File=>new=>Part then a new session open.But i can't able to access my tool here.I don't know what is the problem am facing.

5 REPLIES 5
dschenken
21-Topaz I
(To:ddhini)

I have to guess this is the problem because of lack of detail about how your access changes.

The display of buttons is modal. So when you first open Creo you are in an empty mode. When you activate the part editor you are in the Part editor mode. You might also open an assembly in Assembly editor mode. For each of these modes there is a set of window and button configurations, and you need to add the button to each mode separately.

ddhini
14-Alexandrite
(To:dschenken)

Actually am using modeldescriptor in my sesaion to open a model.when i open proE the modaldescriptor works perfect.but when i open new part in same proE session the modeldeacriptor not load the modal.this is the problem am facing

dschenken
21-Topaz I
(To:ddhini)

You will probably have to post the program.

ddhini
14-Alexandrite
(To:dschenken)

String sdf=null;

  sdf="C:\\Users\\350154\\Desktop\\xxxx.prt";

  session = pfcGlobal.GetProESession();

  ModelDescriptor md=null;

  md = pfcModel.ModelDescriptor_CreateFromFileName(sdf);

  RetrieveModelOptions rmo = pfcSession.RetrieveModelOptions_Create();

  rmo.SetAskUserAboutReps(false);

  Model modele = session.RetrieveModelWithOpts(md, rmo);

  session.RetrieveModel(md);

modele.Display();

Model model=session.GetCurrentModel();


this is the code am using to get the model and load in session.

ddhini
14-Alexandrite
(To:ddhini)

The program works in session but it fails in its base session

Top Tags