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

Java Tool not works in new Session

Highlighted
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.

Tags (1)
5 REPLIES 5
Highlighted

Re: Java Tool not works in new Session

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.

Highlighted

Re: Java Tool not works in new Session

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

Highlighted

Re: Java Tool not works in new Session

You will probably have to post the program.

Highlighted

Re: Java Tool not works in new Session

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.

Highlighted

Re: Java Tool not works in new Session

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

Announcements