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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

XStringTooLong

ddhini
14-Alexandrite

XStringTooLong

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

0 REPLIES 0
Top Tags