Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
i am acessing my model file from a location by following Code.
session = pfcGlobal.GetProESession();
sdf="C:\\Users\\350\\Desktop\\xxxx.prt";
ModelDescriptor md = pfcModel.ModelDescriptor_CreateFromFileName(sdf);
RetrieveModelOptions rmo = pfcSession.RetrieveModelOptions_Create();
rmo.SetAskUserAboutReps(false);
Model modele = session.RetrieveModelWithOpts(md, rmo);
Window window = session.CreateModelWindow(modele);
modele.Display();
window.Activate();
Its smoothly working....
But sometimes the location is changed.
sdf="C:\\Users\\350154\\Desktop\\C:\\Users\\350\\Desktop\\javaGUI\\modelgen\\dist\\mastemodels\\xxxx.prt";
Now there is an error is populating.
String length is too long.....
Please help me to solve my issue ....
Thanks in advance.......