Hi all Thank you for your input. It was an illegal character in the String returned by the method and a minor programming bug on my side. I used these String methods replaceAll("[']","); replaceAll("[.]","_"); But in error I used the orginal String value each time, so the ' was "reinserted" by the last replaceAll. I ended up with the String "NEW_NAME" and had a hard time to discover the extra ' in the NetBeans debugger.
Now everything is working as expected and my users got a brand new application for christmas.
Hi all I am trying to add names to points imported from a STEP file. When I use the ModelItem.SetName(String) method I get an exception when the supplied String is set from a function, that returns a String. SetName("NEWNAME"); //works ok. String name ="NEW NAME"; SetName(name); //works OK String name = method();//Method returns type String. Setname(name); //throws an InvalidName exception Any ideas to get around this? TIA. Bjarne Frandsen
(Pro/ENGINEER Wildfire 4.0 M170 and Windchill 9.1 M020 on Windows)
Site Links: View post online View mailing list online Send new post via email Unsubscribe from this mailing list Manage your subscription Use of this email content is governed by the terms of service at: