Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
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.
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.
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
You will probably have to post the program.
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.
The program works in session but it fails in its base session