cancel
Showing results for 
Search instead for 
Did you mean: 
Security Alert Log4j Security Vulnerability. Click here to know more.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
Announcements